Questions tagged [loop-facility]

2 questions
2
votes
4 answers

Equivalent of `continue' in `cl-loop'?

Does the cl-loop macro implement an equivalent to the continue keyword of other languages? The behavior of break can be achieved by using until or while clauses by placing them in the middle of cl-loop, e.g. (cl-loop item in '(1 2 3 4) do…
kdb
  • 1,561
  • 12
  • 21
1
vote
0 answers

How to convert a generator to a list?

I'm a huge fan of using generators all the time and for everything, but sometimes you just need to convert an iterator to a list. The documentation on generators seems to imply this is doable with the loop facility The Common Lisp loop facility…
George Mauer
  • 397
  • 2
  • 9