Or using Raul's further improvement to consolidate some parentheses
(+/@#~ 0 = 5&|)@(100+i.) 900
98550
Cheers, bob
> On Jan 16, 2018, at 9:20 PM, robert therriault <[email protected]> wrote:
>
> Hi Skip,
>
> I like using @: instead of [: and throwing a hook in shortens things a little
> bit by getting rid of one ] and 5&| gets rid of another.
>
> +/@:(#~ 0 = 5&|)@(100+i.900)"_
>
> or if you were willing to use 900 as the argument to the tacit verb
>
> +/@:(#~ 0 = 5&|)@(100 + i.) 900
>
> which in addition to being shorter strikes me as a little more elegant
>
> Cheers, bob
>
>> On Jan 16, 2018, at 8:39 PM, Skip Cave <[email protected]> wrote:
>>
>> [: ([: +/ ] #~ 0 = 5 | ]) (100+i.900)"_
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm