I it legal to reply to a Scheme problem with a Common Lisp reply?
So here goes:
(defun f (string) (lambda (nil-or-closure) ;; a closure (if (null nil-or-closure) ;; we are asked to give the string: string ;; we are the caller, get the string ;; of the other closure: (let ((other-string (funcall nil-or-closure nil))) ;; print it out: (loop for a across string for b across other-string do (format t "~A~A" a b))))) [5]> (funcall (f "Js nte ceeWnae")(f "utAohrShm anbe")) Just Another Scheme Wannabee
In related news, common-lisp-controller is almost ready for prime-time. It's amazing how many failuremodes one can dream up for a package manager...