Yeah, ... :/

And, on a similar note:

   <:@(i.~ {"0 1 +/\@|:@=) 0 0 0 1
| index error

I've been liking
oc=: i.~ (] - {) /:@/:
from http://code.jsoftware.com/wiki/Essays/Progressive_Index-Of

Thanks,

-- 
Raul


On Sat, Mar 31, 2018 at 11:02 AM, R.E. Boss <[email protected]> wrote:
> No:
>
>       (/: /:~ ;@(<@i.@#/.~)) 1 2 1 1 2{ 0 3 1
> 2 0 0 1 1
>
>
> R.E. Boss
>
>
>> -----Original Message-----
>> From: Programming <[email protected]> On
>> Behalf Of Raul Miller
>> Sent: woensdag 28 maart 2018 22:02
>> To: Programming forum <[email protected]>
>> Subject: Re: [Jprogramming] running count
>>
>> This?
>>
>>    (/: /:~ ;@(<@i.@#/.~))1 2 1 1 2
>> 0 0 1 2 1
>>
>> --
>> Raul
>>
>>
>> On Wed, Mar 28, 2018 at 2:32 PM, Joe Bogner <[email protected]>
>> wrote:
>> > I think this is an easy one but it's escaping me. How to calculate a
>> > running count of an item in a list?
>> >
>> > runct (1,2,1,1,2) -: 0,0,1,2,1
>> > runct (5,6,5,5,6) -: 0,0,1,2,1
>> >
>> > This seems to be a good start
>> >
>> >  = (5,6,5,5,6)
>> > 1 0 1 1 0
>> > 0 1 0 0 1
>> > ----------------------------------------------------------------------
>> > For information about J forums see
>> http://www.jsoftware.com/forums.htm
>> ----------------------------------------------------------------------
>> For information about J forums see http://www.jsoftware.com/forums.htm
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to