Rather than racking your brains to do it in an unbelievably complex one liner, 
why not just use three sentences?:
1.   Extract the data you need with {
2    Perform your verb
3.   Re-insert it with }

Then after you've tested it out, if you really must, you may be able to convert 
it into a one-liner using ]

Finally, you can try and convert that into a tacit function.  But unless all 
this added effort results in a noticeable speed up, why bother, unless it's 
some macho thing?!?  One of the main raisons d'ĂȘtre of J is that it permits far 
faster program development - perhaps 10 times faster than traditional 
programming languages.  If you're going to spend time dreaming up such one 
liners, what's happened to that time advantage.  Is that an integral part of 
APL and J ?!?

In an earlier world APL, such dense, difficult-to-understand one liners, had a 
name, which I can't even use today because of more recent connotations is has.

Bob in Boynton Beach, FL


       
---------------------------------
Be a better sports nut! Let your teams follow you with Yahoo Mobile. Try it now.
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to