From 7203c046f91b140895bbc90df592929b7539d6df Mon Sep 17 00:00:00 2001 From: Techcable Date: Fri, 26 Aug 2022 15:23:52 -0700 Subject: [PATCH] Remove collection? type test No longer used to guard the type tests. --- src/boot/boot.janet | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/boot/boot.janet b/src/boot/boot.janet index 2a2252ce..fd338855 100644 --- a/src/boot/boot.janet +++ b/src/boot/boot.janet @@ -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))