Suppose

    ]M =: 1;2;2;3;3;3
+-+-+-+-+-+-+
|1|2|2|3|3|3|
+-+-+-+-+-+-+
    ]N =: 1;2;3
+-+-+-+
|1|2|3|
+-+-+-+

Call these sets.

Do you like

    M -. N

    $ M -. N
0

for M minus N ?  Or would you prefer

    M minus N
+-+-+-+
|2|3|3|
+-+-+-+
    $ M minus N
3

?

If the latter, how do you write verb minus?


If
    ]K =: 1;2;3;3;3;3
+-+-+-+-+-+-+
|1|2|3|3|3|3|
+-+-+-+-+-+-+

what do you like for K union M?  And how do you write verb union?

    K
+-+-+-+-+-+-+
|1|2|3|3|3|3|
+-+-+-+-+-+-+
    M
+-+-+-+-+-+-+
|1|2|2|3|3|3|
+-+-+-+-+-+-+


Finally, what do you like for K intersect M, and how do you write verb 
intersect?


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

Reply via email to