Andrea Monaco
Andrea Monaco

Reputation: 79

Common Lisp: Execute a form until nil

I'd like to execute a CL form until it becomes nil. How can I? (I RTFM, but couldn't find it. Maybe I'm just near to mental breakdown).

Anyway, help would be truly appreciated!

Upvotes: 3

Views: 124

Answers (1)

Anton Kovalenko
Anton Kovalenko

Reputation: 21507

(loop while your-form)

or

(do () ((not your-form)))

Upvotes: 4

Related Questions