lomeo: (лямбда)
2006-07-04 06:16 pm

макры рулят

Guy Lapalme.  Implementation of a "Lisp comprehension" macro.

Вот что делают!

(defun perms (x)
    (if (null x) ’(())
        [(cons a p) (a <- x) (p <- (perms (remove a x :count 1)))]))


via [livejournal.com profile] lispnik