M =: +./@E."1 >   NB. Marc's f

    '  ' M 'ab';'abc';'abcd'  NB. two spaces
1 0 0

    '  ' f 'ab';'abc';'abcd'  NB. Kip's f
0 0 0

That is, '  ' is not a substring of 'ab' or 'abc' or 'abcd'


On 11/11/2011 1:47 PM, Marc Simpson wrote:
> On Fri, Nov 11, 2011 at 7:45 PM, Marc Simpson<[email protected]>  wrote:
>> With the original data, how about:
>>
>> f =. +./"1@E."1>
>
> Whoops. Even better,
>
> f =. +./@E."1>
>
> -M
> ----------------------------------------------------------------------
> 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