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