1
0
mirror of https://github.com/janet-lang/janet synced 2024-06-29 00:23:18 +00:00

Remove collection? type test

No longer used to guard the type tests.
This commit is contained in:
Techcable 2022-08-26 15:23:52 -07:00
parent 754b61c593
commit 7203c046f9
No known key found for this signature in database
GPG Key ID: D7B98ADFF827CD17

View File

@ -120,9 +120,6 @@
(defn indexed? "Check if x is an array or tuple." [x]
(def t (type x))
(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 true? "Check if x is true." [x] (= x true))
(defn false? "Check if x is false." [x] (= x false))