2009/2/10 Matthew Brand <[email protected]>:
> Perhaps these are the things you want?
>
> r =: 1 : '(u...@])"_1'
> R =: @]
>
> l =: 1 : '(u...@[)"_1'
> L =: @[
Note that you could also have used
r1=: (@])("_1)
l1=: (@[)("_1)
r1 and l1 behave like r and l.
Another approach, which I think needs to
be explicit, would be:
r2=: 1 :'u...@]"u'
l2=: 1 :'u...@["u'
Here, the derived verb retains the rank of its
argument verb.
--
Raul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm