tasks a-s
This commit is contained in:
parent
47bf37c096
commit
b83f433714
12433 changed files with 156208 additions and 123 deletions
1
Task/Null-object/Common-Lisp/null-object-1.lisp
Normal file
1
Task/Null-object/Common-Lisp/null-object-1.lisp
Normal file
|
|
@ -0,0 +1 @@
|
|||
(if (condition) (do-this))
|
||||
5
Task/Null-object/Common-Lisp/null-object-2.lisp
Normal file
5
Task/Null-object/Common-Lisp/null-object-2.lisp
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
(defmethod car* ((arg cons))
|
||||
(car arg))
|
||||
|
||||
(defmethod car* ((arg null))
|
||||
nil)
|
||||
2
Task/Null-object/Common-Lisp/null-object-3.lisp
Normal file
2
Task/Null-object/Common-Lisp/null-object-3.lisp
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
(defmethod car* ((arg t)) ;; can just be written (defmethod car* (arg) ...)
|
||||
(error "CAR*: ~s is neither a cons nor nil" arg))
|
||||
Loading…
Add table
Add a link
Reference in a new issue