Skip to content

Commit ef8bd2f

Browse files
committed
add more built-in fns
1 parent 36fd248 commit ef8bd2f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/datascript/built_ins.cljc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
(defn- and-fn [& args]
3434
(reduce (fn [a b]
3535
(if b b (reduced b))) true args))
36-
36+
3737
(defn- or-fn [& args]
3838
(reduce (fn [a b]
3939
(if b (reduced b) b)) nil args))
@@ -96,7 +96,8 @@
9696
'-differ? -differ?, 'get-else -get-else, 'get-some -get-some, 'missing? -missing?, 'ground identity,
9797
'clojure.string/blank? str/blank?, 'clojure.string/includes? str/includes?,
9898
'clojure.string/starts-with? str/starts-with?, 'clojure.string/ends-with? str/ends-with?
99-
'tuple vector, 'untuple identity})
99+
'tuple vector, 'untuple identity,
100+
'number? number?, 'integer? integer?, 'string? string?, 'boolean? boolean?})
100101

101102
;; Aggregates
102103

0 commit comments

Comments
 (0)