inlining lists

From: Frank Buss (fb_at_frank-buss.de)
Date: 07/31/04


Date: Sat, 31 Jul 2004 10:01:51 +0000 (UTC)

I assume the solution is very easy, but I didn't found it. I try to build a
list like this:

(setq test (list 1 2 (multiple-value-list (floor 19 5)) 5 ))

and it produced this:

(1 2 (3 4) 5)

but I want this:

(1 2 3 4 5)

Ok, I can think of combinations with CONS or applying a flatten function to
the result, but perhaps there is a magic char which does the right thing
and simply "inlines" the list.

-- 
Frank Buß, fb@frank-buss.de
http://www.frank-buss.de, http://www.it4-systems.de


Relevant Pages

  • Re: inlining lists
    ... Frank Buss wrote: ... I can think of combinations with CONS or applying a flatten function to ... but perhaps there is a magic char which does the right thing ...
    (comp.lang.lisp)
  • Re: inlining lists
    ... Frank Buss writes: ... I can think of combinations with CONS or applying a flatten function to ... but perhaps there is a magic char which does the right thing ... You might try this (notice the backquote): ...
    (comp.lang.lisp)