lispnewbie wrote:After created in the labels funtions, loop can be called only one time as the second argument.
That is not true, you can call the function loop
as many times as you want, either inside it's own body, inside the body of another function created in the macro labels
or inside the body of labels
lispnewbie wrote:Is it possible to call loop more than one time and inside the body? (like my "min" function).
Yes, there is no problem in calling a function recursively more than once.
lispnewbie wrote:Do you think there is a way to write "let loop" as a recursive function in common lisp?
A local function inside labels
that calls itself is already a recursive function. Unless you are thinking about not creating a local function and defining remove
as recursive functions.
Just one note, though: Common Lisp already has functions named removed
, so you should rename those functions.