Newsgroups: comp.lang.apl
Path: watmath!watserv2.uwaterloo.ca!torn!utnut!cs.utexas.edu!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!pviton
From: pviton@magnus.acs.ohio-state.edu (P A Viton)
Subject: APL2 question
Message-ID: <1993Mar12.150245.18532@magnus.acs.ohio-state.edu>
Sender: news@magnus.acs.ohio-state.edu
Nntp-Posting-Host: bottom.magnus.acs.ohio-state.edu
Organization: The Ohio State University
Date: Fri, 12 Mar 1993 15:02:45 GMT
Lines: 19


Suppose you have a character vector like

      (a)(b(c))(d)

where the ( and ) are field delimiters.  In this example, the first  field
consists of the single item  a, the second consists of  b, which has a 
subfield   c, and the third has the single field d.  Is there any obvious way
of extracting this information into a nested vector of objects (with or without
the delimiters) which would mimic the structure of the fields?

If it wasn't for the possibility of subfields, of course, the partition
function would be fine; but I don't see how to do it otherwise.

Any suggestions?
-- 
-----------
Phil Viton
PViton@magnus.acs.ohio-state.edu
