4 ms·
How to make a list of n elements? (defun list-of (n elt) (if (zerop n) nil (cons elt (list-of (- n 1) elt)))) ANSI Common Lisp, Paul Gra
by JBiserkov 17y ago
How to make a list of n elements?
(defun list-of (n elt)
(if (zerop n)
nil
(cons elt (list-of (- n 1) elt))))
ANSI Common Lisp, Paul Graham, page 38
1996 by Prentice Hall