Re: How to create local variable within LOOP initially clause?




"Slobodan Blazeski" <slobodan.blazeski@xxxxxxxxx> wrote in message news:1193876131.499182.254330@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I've searched the web but I can not find an example of creating a
local variable within loop initially clause. Basically I want to
transfer let form into LOOPs initially or somewher in the middle of
it:

You want the <with> clause.

It's Halloween night here in NYC. Is this trick or treat?

Carl Taylor

CL-USER 1 >
(loop with x = '()
for i in '(1 2 3 4)
do (push i x)
finally (return x))
(4 3 2 1)

.