The examples below for the most part involve the fact that x;y is (<x),(<y) if 
y 
is not boxed, and x;y is (<x),y if y is boxed (that is, is a box or an array of 
boxes).  We must remember this mostly useful inconsistency in the verb ; .

Below I add comments.

On 10/12/2010 1:27 PM, Viktor Cerovski wrote:

> There is a caveat:
>
>     set =: a: ,~ [: /:~ ~.
>     E =: ,a:
>
>     set E
> +++
> |||
> +++

Here the argument to verb set is a list with one item, the box  a:  , and the 
set is the list of two boxes  a:,a: .  The curtail is  ,a:  and the element is 
$0  because that is what the box  a:  contains.

>
>     set 1;E
> +-+++
> |1|||
> +-+++

Here the argument to set is the list  (<1),(,a:)  which is (<1),a:  and the 
elements are 1 and $0 .

>
>     set E;1
> +-+--++
> |1|++||
> | |||||
> | |++||
> +-+--++

Now the argument to set is the list (<,a:),<1  and the elements are 1 and ,a: 
that is 1 and E .

>
>     set E;1;E
> +-++--++
> |1||++||
> | ||||||
> | ||++||
> +-++--++
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to