Skip to content

Commit

Permalink
Remove the callable? predicate.
Browse files Browse the repository at this point in the history
Many times are callable now in some circumstances, so
the predicate is not that useful.
  • Loading branch information
bakpakin committed Feb 22, 2019
1 parent f4908eb commit beed839
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/core/core.janet
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit beed839

Please sign in to comment.