mirror of
https://github.com/janet-lang/janet
synced 2024-11-17 22:24:49 +00:00
Remove collection? type test
No longer used to guard the type tests.
This commit is contained in:
parent
754b61c593
commit
7203c046f9
@ -120,9 +120,6 @@
|
|||||||
(defn indexed? "Check if x is an array or tuple." [x]
|
(defn indexed? "Check if x is an array or tuple." [x]
|
||||||
(def t (type x))
|
(def t (type x))
|
||||||
(if (= t :array) true (= t :tuple)))
|
(if (= t :array) true (= t :tuple)))
|
||||||
(defn collection? "Check if x is an array, tuple, table, or struct" [x]
|
|
||||||
(def t (type x))
|
|
||||||
(if (= t :array) true (if (= t :tuple) true (if (= t :table) true (= t :struct)))))
|
|
||||||
(defn truthy? "Check if x is truthy." [x] (if x true false))
|
(defn truthy? "Check if x is truthy." [x] (if x true false))
|
||||||
(defn true? "Check if x is true." [x] (= x true))
|
(defn true? "Check if x is true." [x] (= x true))
|
||||||
(defn false? "Check if x is false." [x] (= x false))
|
(defn false? "Check if x is false." [x] (= x false))
|
||||||
|
Loading…
Reference in New Issue
Block a user