Added logical operators and, not and or. Closes #3
This commit is contained in:
parent
8df304bc60
commit
62ebaf9819
13 changed files with 422 additions and 132 deletions
6
lisp/nth.lisp
Normal file
6
lisp/nth.lisp
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
(set! nth (lambda (n l)
|
||||
"Return the `n`th member of this list `l`, or `nil` if none."
|
||||
(cond ((= nil l) nil)
|
||||
((= n 1) (car l))
|
||||
(t (nth (- n 1) (cdr l))))))
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue