From: Hallvard Tr{tteberg
Subject: map-into
Date: 
Message-ID: <HALTRAET.92Apr24142007@sparc.si.no>
Hi, when using map-into, can the result-sequence be eq to the other
arguments as in:

(let ((a (list 1 2 3 4)))
  (map-into a #'1+ a)
  (values a))

=> (2 3 4 5)

Is this guaranteed to work in Common Lisp?


--
Hallvard Traetteberg
Dept. of Knowledge Based Systems
Center for Industrial Research
Box 124 Blindern, 0314 Oslo 3
NORWAY

Tlf: +47 2 45 20 10
Fax: +47 2 45 20 40
Email: ········@si.no
From: Barry Margolin
Subject: Re: map-into
Date: 
Message-ID: <kvgrqoINNdgv@early-bird.think.com>
In article <······················@sparc.si.no> ········@sparc.si.no (Hallvard Tr{tteberg) writes:
>Hi, when using map-into, can the result-sequence be eq to the other
>arguments as in:

The X3J13 proposal that created it never specified this directly.  However,
one of the examples in the proposal does this, so it appears that this was
intended.  Two of the examples in the draft standard also do this, but
examples aren't binding.  And unfortunately, CLtL2 didn't include any
examples at all, so implementors who work from that may not realize that
this is expected to work.

I'll try to get the text of the description clarified in the next revision
of the draft.
-- 
Barry Margolin
System Manager, Thinking Machines Corp.

······@think.com          {uunet,harvard}!think!barmar