On Wed, Oct 29, 2008 at 17:24, Mike Day <[EMAIL PROTECTED]> wrote:
> I derived a slower and more space-consuming function [...]
> using cut ( ;. )
Is this it?
0 (~:(#;.1##)]) 1 0 2 3 4 5 0 0 0 4 3 2 4
1 1 2 3 4 5 5 5 5 4 3 2 4
It does worth a mention because it's the most concise among the ones
mentioned in the thread I think. It looks quite funny with all the
hash marks by the way.
Or did you perhaps think of some variant that does the repetition
inside the argument to cut, like this?
0 (~:([:;([:<##{.);.1)]) in
1 1 2 3 4 5 5 5 5 4 3 2 4
Ambrus
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm