On 5/17/07, Mike Powell <[EMAIL PROTECTED]> wrote:
(This also seems to do what you'd expect for negative arguments.)

Not quite what I expected:
  p=: ([: =/ ] +. >:@i.@<[EMAIL PROTECTED]:)"0
  (#~p) i:10
_7 _5 _3 _2 _1 0 1 2 3 5 7

But I think I like it.

--
Raul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to