Re: Newbie Design Question

From: Sebastian Stern (sstern42_at_yahoo.com)
Date: 11/23/03


Date: 23 Nov 2003 03:11:11 -0800

Jeff Katcher wrote:
> I'm back to LISP after having been away for a long, long time (it's
> _hard_ to break the SETQ habit :). BTW, this is not homework of any
> sort.

Don't forget to fill in
http://alu.cliki.net/The%20Road%20to%20Lisp%20Survey .
 
> )
> ) level
> )
> )

Do not put close parentheses on a line by themselves. Contrary to the
holy wars concerning the placement of curly braces in other languages,
this is something Lispers are unanimous about.
 
> What I'd like to return is a list of the accumulated lists (which
> would be "level" at the if-else case), but can't think of a way to
> do it other than appending to something outside the function's scope.
> (Which I viscerally recognize as abhorrent...:)

I'm not sure what your code is supposed to do, but I suspect you want

(return-from chain-stuff level)

Be warned, however, that the append in your code does not modify level
in the way I think you want it to.

Sebastian Stern

"Freedom is the freedom to say (= (+ 2 2) 4). If that is granted, all
else follows."