[r6rs-discuss] append confusion

Lynn Winebarger owinebar at gmail.com
Sun Mar 29 07:47:44 EDT 2009


On Sun, Mar 29, 2009 at 7:23 AM, Abdulaziz Ghuloum
<aghuloum at cs.indiana.edu>wrote:

> On Mar 29, 2009, at 2:15 PM, leppie wrote:
> > 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.
>

This doesn't follow from the sentence quoted by leppie, but the one
immediately following it in the text:
     "If no pairs are allocated, *obj* is returned."

Lynn
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.r6rs.org/pipermail/r6rs-discuss/attachments/20090329/8113378c/attachment.htm 


More information about the r6rs-discuss mailing list