Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Good day, fellow lispers

Name: Anonymous 2011-01-29 8:57

In following code, does "return-from all" frees mapcar's stack frame or would lead to stack overflow?

(defun all (fun xs)
  (mapcar (lambda (x) (unless (funcall fun x)
                        (return-from all nil)))
          xs)
  t)

Name: Anonymous 2011-01-29 11:35

>>11
I can't vouch for CL, but in Scheme a "statement" is just an expression that yields an undefined value or values.
>>7
What about if?

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List