[plt-scheme] Re: list output

From: Neil Toronto (ntoronto at cs.byu.edu)
Date: Wed Apr 29 18:57:36 EDT 2009

-gary- wrote:
> Thank you Thomas.
> It seems that I don't need the parentheses around the parameters.
> I have now changed it to:
> - (append list1 list2 )
> which seems to fit better with my other procedure calls.  This is
> still not appending though.  I can output both lists separately and
> got what I expected so the lists seem to be valid.  I can't see
> anything else that is wrong here.

Are you expecting list1 to change because of the call to append? Some 
languages would do that with similar code. Scheme functions almost 
always work like mathematical functions, which return values without 
changing their parameters.


Posted on the users mailing list.