From beed839d12a4c38af786b09b9977ec9eaf0c9752 Mon Sep 17 00:00:00 2001 From: Calvin Rose Date: Thu, 21 Feb 2019 20:38:22 -0500 Subject: [PATCH] Remove the callable? predicate. Many times are callable now in some circumstances, so the predicate is not that useful. --- src/core/core.janet | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/core/core.janet b/src/core/core.janet index 3e1bc582..96df2e0f 100644 --- a/src/core/core.janet +++ b/src/core/core.janet @@ -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))