Even nicer. I can see I'll be using this a lot.
On Sun, Feb 14, 2010 at 5:34 AM, Roger Hui <rhui...@shaw.ca> wrote: > {.@;: t > > > > ----- Original Message ----- > From: Roger Hui <rhui...@shaw.ca> > Date: Saturday, February 13, 2010 21:00 > Subject: Re: [Jprogramming] Slicing and dicing a 2D char mx > To: Programming forum <programming@jsoftware.com> > >> How do you do it in APL? Translate it into J. >> >> Alternatively, your table t is a very special table >> and so admits some special phrases. e.g. >> >> {."1 ;: t >> >> >> >> ----- Original Message ----- >> From: Ian Clark <earthspo...@googlemail.com> >> Date: Saturday, February 13, 2010 20:50 >> Subject: [Jprogramming] Slicing and dicing a 2D char mx >> To: Programming forum <programming@jsoftware.com> >> >> > 1. If I have a M-by-N table with entries like this (you may >> recognise> the example ;)... >> > >> > ... >> > {. curlylfdot >> > {: curlylfco >> > {:: curlylfcoco >> > } curlyrt >> > ... >> > >> > how do I neatly slice off the first 3 columns (say) into a >> boxed list >> > of tally M to serve as a lookup index? >> > Ditto any given field, i.e. set of columns? >> > I'm often doing it, but a different way each time, and the >> > methods I >> > use are cumbersome. >> > >> > 2. Is there already a slice'n'dice cookbook on the wiki, to >> give quick >> > answers to questions like this? > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm