3 ms·
No, you don't even need the condition system to break out of nested iteration. (loop named loop-a do (loop named loop-b do (loop named loop-c
by phoe-krk 4y ago
No, you don't even need the condition system to break out of nested iteration.
(loop named loop-a do
(loop named loop-b do
(loop named loop-c do
(return-from loop-b)))
(return-from loop-a 42))
Under the hood, this uses CL:BLOCK; you can also use it yourself to mark where you want to be able to return from within the lexical scope of your code.