And that's an overstatement.

http://www.jsoftware.com/jwiki/Phrases/Strings
http://www.jsoftware.com/jwiki/Guides/Strings
http://www.jsoftware.com/jwiki/Guides/Parsing




> From: Ian Clark <earthspo...@googlemail.com>
> 
> But if I carry on writing myself a task-oriented cookbook of
> slice'n'dice for a char table, surely i'll be reinventing the wheel?
> 
> Ian
> 
> 
> On Sun, Feb 14, 2010 at 5:51 AM, Ian Clark wrote:
> > Even nicer. I can see I'll be using this a lot.
> >
> > On Sun, Feb 14, 2010 at 5:34 AM, Roger Hui wrote:
> >> {.@;: t
> >>
> >>
> >>
> >> ----- Original Message -----
> >> From: Roger Hui 
> >> Date: Saturday, February 13, 2010 21:00
> >> Subject: Re: [Jprogramming] Slicing and dicing a 2D char mx
> >> To: Programming forum 
> >>
> >>> 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 
> >>> Date: Saturday, February 13, 2010 20:50
> >>> Subject: [Jprogramming] Slicing and dicing a 2D char mx
> >>> To: Programming forum 
> >>>
> >>> > 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



      
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to