Perhaps these are the things you want? r =: 1 : '(u...@])"_1' R =: @]
l =: 1 : '(u...@[)"_1' L =: @[ < R i. 2 3 4 ┌───────────┐ │ 0 1 2 3│ │ 4 5 6 7│ │ 8 9 10 11│ │ │ │12 13 14 15│ │16 17 18 19│ │20 21 22 23│ └───────────┘ < r i. 2 3 4 ┌─────────┬───────────┐ │0 1 2 3│12 13 14 15│ │4 5 6 7│16 17 18 19│ │8 9 10 11│20 21 22 23│ └─────────┴───────────┘ Capital R and L act on the whole operand just like @: and small r and l operate on the cells a bit like @ . On Tue, Feb 3, 2009 at 2:49 PM, Viktor Cerovski <[email protected]>wrote: > > > Raul Miller-4 wrote: > > > > On Tue, Feb 3, 2009 at 9:10 AM, Viktor Cerovski > > <[email protected]> wrote: > >> l=:@[ > >> r=:@] > >> L=:@:[ > >> R=:@:] > > > > @[ and @:[ mean the same thing. > > > > Likewise for @] and @:] > > > > @ uses the rank of the verb on its right. > > @: uses infinite rank. > > [ and ] have infinite rank. > > > Good point Raul, I haven't realized this before. > -- > View this message in context: > http://www.nabble.com/Examples-of-dyadic-forks-tp21781826s24193p21811393.html > Sent from the J Programming mailing list archive at Nabble.com. > > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
