Re: A few questions from a confused lisper

2018-07-13 Thread Johan Persson
On 2018-07-13 05:25, Bruno Franco wrote: actually, you could just put the function (mumble-mumble X) in the place of Y: (for X (1 2 3 4 5) (NIL (mumble-mumble X) (println "this does not work")) ) Sure, but this doesn't help if I wish to use Y in multiple places... On Thu, Jul 12, 2018 at

Re: A few questions from a confused lisper

2018-07-13 Thread Johan Persson
On 2018-07-13 07:19, Alexander Burger wrote: Hi Johan, First off, I'm confused about what the correct way of doing local exits. There's no "return" or "return-from" -- instead the closest thing I've found is "quit", which is sort of akin to "error" in CL Correct. There is no 'return' functi

Re: A few questions from a confused lisper

2018-07-12 Thread Alexander Burger
Hi Johan, > First off, I'm confused about what the correct way of doing local exits. > There's no "return" or "return-from" -- instead the closest thing I've found > is "quit", which is sort of akin to "error" in CL Correct. There is no 'return' function jumping directly out of a nested structure

Re: A few questions from a confused lisper

2018-07-12 Thread Bruno Franco
actually, you could just put the function (mumble-mumble X) in the place of Y: (for X (1 2 3 4 5) (NIL (mumble-mumble X) (println "this does not work")) ) On Thu, Jul 12, 2018 at 9:27 PM Bruno Franco wrote: > Well, for the conditional exit in the iterators (for, do, and loop), > I w

Re: A few questions from a confused lisper

2018-07-12 Thread Bruno Franco
Well, for the conditional exit in the iterators (for, do, and loop), I would do something like this: (use Y (for X (1 2 3 4 5) (setq Y (mumble-mumble X)) (NIL Y (println "this does not work")) ) ) Though I'm not sure that is the most elegant way to go XD. As for the local exit