setLess =:: -. [  

1 2 3 4 setLess 1 4
2 3

so, 

1; 2; 3; 4 setLess 1; 4

should return boxed
2 3

but it returns
boxed 1 2 3 4

and in my math notation

{ 1, { 2, 3 }, 3 } setLess { 2, 3 } should return { 1, 3 }
{ 1, { 2, 3 }, 3 } setLess { 3 }     should return { 1, {2,
3}}




   

----- Original Message Follows -----
From: Raul Miller <[email protected]>
To: Programming forum <[email protected]>
Subject: Re: [Jprogramming] sets within a set
Date: Thu, 16 Jul 2009 15:52:48 -0400

>On Thu, Jul 16, 2009 at 3:49 PM,
>> <[email protected]> wrote: A =: 1 2 3 4
>> B =: 10 20 30 40
>> C =: 100 200 300 400
>>
>> How would one define the set:
>> bigSet =: 0.5 A B C 1000.5
>> in such a way that the cardinality, that is '# bigSet' is
>5
>
>   bigSet=: 0.5;A;B;C;1000.5
>
>-- 
>Raul
>-----------------------------------------------------------
>----------- 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