Right, there's an awful lot of Lisp actually working...
This commit is contained in:
parent
c3b327f760
commit
1f16241af7
31 changed files with 250 additions and 97 deletions
6
resources/sexpr/repeat.lsp
Normal file
6
resources/sexpr/repeat.lsp
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
;; REPEAT is not present in the Lisp 1.5 manual, but it's so simple and so
|
||||
;; useful that it seems a legitimate extension.
|
||||
|
||||
(DEFUN REPEAT (N X)
|
||||
(COND ((EQ N 0) NIL)
|
||||
(T (CONS X (REPEAT (SUB1 N) X)))))
|
||||
Loading…
Add table
Add a link
Reference in a new issue