(defun / (x y) (/ x y))
(defun 1+ (x) (+ x 1))
(defun 1- (x) (- x 1))
- (defun cons (x y ) (cons x y))
+ (defun cons (x y) (cons x y))
(defun car (x) (car x))
(defun cdr (x) (cdr x))
(if (null list)
'()
(cons (funcall func (car list))
- (mapcar func (cdr list))))))
+ (mapcar func (cdr list)))))
+
+ (defmacro push (x place)
+ `(setq ,place (cons ,x ,place))))
(defun !reduce (func list initial)
#+common-lisp
(progn
-
(defmacro while (condition &body body)
`(do ()
((not ,condition))