> That said, I wish J had special code for something like
> ssndx=: ([:;({.<@:[EMAIL PROTECTED]:)"1)@[ {]
> with a two column numeric right argument and perhaps
> ssdir=: I.@(e.{.) ,. #;.1
Have you looked at f;.0 ? (And did you mean a two column numeric LEFT
argument?)
----- Original Message -----
From: Raul Miller <[EMAIL PROTECTED]>
Date: Wednesday, February 6, 2008 5:13
Subject: Re: [Jprogramming] Beginner--more questions about textual data handling
To: Programming forum <[email protected]>
> If your quotes are really extraneous, you can get rid of them
> using
> list1 -. '"'
>
> If they are not extraneous you would need to specify the
> details of the quoting system in use before tackling their
> removal.
>
> Also, in addition to Bill Liam's suggestion note that you can
> use something like
> end {. start }. str
> to get the effect of StrMid. I would have to do timings
> to see which was better, if I was operating on lots
> of data.
>
> That said, I wish J had special code for something like
> ssndx=: ([:;({.<@:[EMAIL PROTECTED]:)"1)@[ {]
> with a two column numeric right argument and perhaps
> ssdir=: I.@(e.{.) ,. #;.1
>
> I found these very useful back when I was manipulating
> text with APL, and I have not found any suitable
> replacement for some of those approaches with J.
>
> Or, more rationally, I wish that J had special code to
> support boxed arrays of character lists, using an
> internal representation pairing an index/offset
> matrix with a flat list of the underlying characters.
> That would eliminate a lot of the current time and
> space overhead of using boxed representations for text
> processing.
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm