Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!rutgers!columbia!cunixc!jbaltz From: jbaltz@cunixc.cc.columbia.edu (Jerry B. Altzman) Newsgroups: comp.lang.lisp Subject: explode macro/function for SUN cl Keywords: sun, common lisp, explode Message-ID: <1211@cunixc.cc.columbia.edu> Date: 12 Feb 89 22:04:31 GMT Organization: Columbia University Lines: 24 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) jbaltz@cunixc.cc.columbia.edu postmast@cuvmb.bitnet nevis::x707jxa (hepnet)