Does anyone out there have an explode macro or function?
For those that don't know, explode is a function that takes an atom and
returns the letters that make up the atom itself, as a list. For example:
(explode 'foobar) ==> (f o o b a r)
As well, if someone has the opposite function, implode, which takes a list
of single letters and implodes them into a list consisting of a single
atom: for example
(implode '(f o o b a r)) ==> (foobar)
[For robustness, implode should only take the first character from each
element of its argument:
(implode '(foo b a r)) ==> (fbar) ]
Thanks a bundle.
/jerry
--
jerry b. altzman consultant, instructional computing consulting group
postmaster, columbia university 212 854 8555 (w) 212 853 6737 (h)
······@cunixc.cc.columbia.edu ········@cuvmb.bitnet nevis::x707jxa (hepnet)