[r6rs-discuss] append confusion
Abdulaziz Ghuloum
aghuloum at cs.indiana.edu
Mon Mar 30 10:38:19 EDT 2009
On Mar 30, 2009, at 9:47 AM, Michael Sperber wrote:
>
> "leppie" <xacc.ide at gmail.com> writes:
>
>> "If append constructs a nonempty chain of pairs, it is always newly
>> allocated."
>>
>> Does this mean the following need to allocate a new pair?
>>
>> (append '() '(a) '())
>
> The intention was, that, in this case, append does not construct a
> nonempty chain of pairs, therefore nothing needs to be newly
> allocated.
> I agree it's a bit confusing - if you can suggest a better wording,
> I'd
> be happy to add an erratum.
You probably read the example as
(append '() '(a))
instead of
(append '() '(a) '())
Right?
Aziz,,,
More information about the r6rs-discuss
mailing list