On Thu, Jul 16, 2009 at 6:35 PM, <[email protected]> wrote:
> setLess =:: -. [

I get a spelling error from this.

Instead, I would do:
   setLess =: -.

> 1; 2; 3; 4 setLess 1; 4
>
> should return boxed
> 2 3

No, you have ignored precedence.  The
above is equivalent to
   1; 2; 3; (4 setLess 1; 4)
or
   1; 2; 3; (4 -. 1; 4)
or
   1;2;3;4

(since 4 and boxed 4 are different.)

But
   (1; 2; 3; 4) -. 1; 4
should give you the result you want.

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

Reply via email to