mirror of
https://github.com/janet-lang/janet
synced 2026-05-20 20:32:16 +00:00
Document empty? more clearly.
This commit is contained in:
+1
-1
@@ -114,7 +114,7 @@
|
||||
(defn true? "Check if x is true." [x] (= x true))
|
||||
(defn false? "Check if x is false." [x] (= x false))
|
||||
(defn nil? "Check if x is nil." [x] (= x nil))
|
||||
(defn empty? "Check if xs is empty." [xs] (= nil (next xs nil)))
|
||||
(defn empty? "Check if an iterable, `iter`, is empty." [iter] (= nil (next iter nil)))
|
||||
|
||||
# For macros, we define an imcomplete odd? function that will be overriden.
|
||||
(defn odd? [x] (= 1 (mod x 2)))
|
||||
|
||||
Reference in New Issue
Block a user