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.
--
Raul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm