1
0
mirror of https://github.com/janet-lang/janet synced 2024-06-17 02:40:00 +00:00

Remove the callable? predicate.

Many times are callable now in some circumstances, so
the predicate is not that useful.
This commit is contained in:
Calvin Rose 2019-02-21 20:38:22 -05:00
parent f4908ebc41
commit beed839d12

View File

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