false is nil not 0
This commit is contained in:
parent
1670ba9a9f
commit
fb25a7ea40
|
|
@ -1,8 +1,8 @@
|
||||||
; not a bool
|
; not a bool
|
||||||
(defun not (x) (if x nil 1))
|
(defun not (x) (if x nil 1))
|
||||||
|
|
||||||
(defun is-pos? (n) (> n 0))
|
(defun is-pos? (n) (> n nil))
|
||||||
(defun is-neg? (n) (< n 0))
|
(defun is-neg? (n) (< n nil))
|
||||||
|
|
||||||
(defun neg (n) (- 0 n))
|
(defun neg (n) (- 0 n))
|
||||||
(defun dec (n) (- n 1))
|
(defun dec (n) (- n 1))
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue