I admire Linda's motivations. You see them below in it uncovers what needs to be explored to understand what is actually happening
and earlier in My interest is really in improving how you analyze any problem. The other focus is on how you can create expressions that are easy to interpret. As a former teacher myself, my hat is off! On 11/30/2011 4:04 AM, Linda Alvord wrote: > > A better explanation than I could give. This is not a beginner issue, but it > is interesting to see how it changes a tree diagram. > > f=: 13 :'(i.x)<@|:i.y' > 5!:4<'f' > > ┌─ [: > ┌─────┼─ i. > │ └─ [ > │ > │ ┌─< > ──┼─ @ ─┴─ |: > │ > │ ┌─ [: > └─────┼─ i. > └─ ] > > g=: 13 :'(i.x)([:< |:)"1 _ i.y' > 5!:4<'g' > > ┌─ [: > ┌─────┼─ i. > │ └─ [ > │ ┌─ [: > │ ┌─────┼─< > ──┼─ " ─┤ └─ |: > │ └─ 1 _ > │ > │ ┌─ [: > └─────┼─ i. > └─ ] > > and it uncovers what needs to be explored to understand what is actually > happening. > > Linda > > -----Original Message----- > From: programming-boun...@jsoftware.com > [mailto:programming-boun...@jsoftware.com] On Behalf Of Aai > Sent: Wednesday, November 30, 2011 3:02 AM > To: Programming forum > Subject: Re: [Jprogramming] FW: A simple function > > > >> IMO the role of @ is essential and by removing it you amputate J. >> How would you form trains equivalent to >> >> (i.2 1)<@|: i.2 3 >> +---+-----+ >> |0 3|0 1 2| >> |1 4|3 4 5| >> |2 5| | >> +---+-----+ > By using rank? > > <@|: b. 0 > _ 1 _ > > (i.2 1) ([:< |:)"1 _ i.2 3 > ┌───┬─────┐ > │0 3│0 1 2│ > │1 4│3 4 5│ > │2 5│ │ > └───┴─────┘ > ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm