1
0
mirror of https://github.com/janet-lang/janet synced 2024-06-24 06:03:17 +00:00
This commit is contained in:
Calvin Rose 2019-12-03 21:24:22 -06:00
parent 73a4c395d2
commit 328454729e

View File

@ -73,6 +73,7 @@
nil)
# Basic predicates
(defn nan? "Check if x is NaN" [x] (not= x x))
(defn even? "Check if x is even." [x] (== 0 (% x 2)))
(defn odd? "Check if x is odd." [x] (not= 0 (% x 2)))
(defn zero? "Check if x is zero." [x] (== x 0))