projects
/
jscl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de05b1e
)
Instance primitive functions as regular ones
author
David Vazquez
<davazp@gmail.com>
Mon, 17 Dec 2012 00:21:14 +0000
(
00:21
+0000)
committer
David Vazquez
<davazp@gmail.com>
Mon, 17 Dec 2012 00:21:14 +0000
(
00:21
+0000)
test.lisp
patch
|
blob
|
history
diff --git
a/test.lisp
b/test.lisp
index
d224c5d
..
507ebfb
100644
(file)
--- a/
test.lisp
+++ b/
test.lisp
@@
-12,9
+12,16
@@
(%compile-defun ',name))
(fsetq ,name (lambda ,args ,@body))))
-(defun + (x y) (+ x y))
+(defun = (x y) (= x y))
+(defun + (x y) (+ x y))
+(defun - (x y) (- x y))
+(defun * (x y) (* x y))
+(defun / (x y) (/ x y))
(defun 1+ (x) (+ x 1))
(defun 1- (x) (- x 1))
+(defun cons (x y ) (cons x y))
+(defun car (x) (car x))
+(defun cdr (x) (cdr x))
(defun append (list1 list2)
(if (null list1)