[r6rs-discuss] append confusion

Abdulaziz Ghuloum aghuloum at cs.indiana.edu
Sun Mar 29 07:23:20 EDT 2009


On Mar 29, 2009, at 2:15 PM, leppie wrote:

> Hi
>
> Documentation for 'append' states:
>
> "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) '())

Yes.  (append '(a) '()) should return a new pair.

Aziz,,,



More information about the r6rs-discuss mailing list