How we can have a conditional loop in lisp ?
I know that we can dotimes for having loop but I want to have a condition : until var is not equal to "test" continue and when it equals to "test" do not continue.
(loop until condition do form)(defmacro until (test &body body)
`(do ()
(,test)
,@body))
;; and its companion
(defmacro while (test &body body)
`(until (not ,test)
,@body))
Users browsing this forum: Google [Bot] and 7 guests