I think of the distinction as follows:
}. drops the first item from a list. The result is the rest of the list,
however many items that may be.

{: takes the last item from a list. The result is a single item, not a list.

Seems logical to me.


On Wed, Oct 2, 2013 at 5:17 PM, Pascal Jasmin <[email protected]>wrote:

> I am taking the shape after I have opened the item.  I'd expect it (the
> insides) to be the same whether I got the item from }. or {:
>
>
>
> ----- Original Message -----
> From: Roger Hui <[email protected]>
> To: Programming forum <[email protected]>
> Cc:
> Sent: Wednesday, October 2, 2013 12:00:27 AM
> Subject: Re: [Jprogramming] strange difference between }. and {:
>
> Not so strange.  }. and {: are not equivalent, even on 2-element lists.
>
>
> On Tue, Oct 1, 2013 at 8:56 PM, Pascal Jasmin <[email protected]
> >wrote:
>
> >    $ >@}.  2; < 2 4 $ i.8
> > 1 2 4
> >    $ >@{:  2; < 2 4 $ i.8
> > 2 4
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
> >
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
> ----------------------------------------------------------------------
> 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