This fixes the negative problem: (#: -: ([: }."1 |.@:(2| <.@-:^:a: )&.|:)) i:16 1
On 27-12-11 19:29, Raul Miller wrote: > This is prettier than mine, but also has problems with negative numbers: > > |.@:(2| [:}:<.@-:^:a: )&.|: _4 > 0 0 > #: _4 > 1 0 0 > -- Met vriendelijke groet, @@i = Arie Groeneveld ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm