Skip to content

Commit 41d3c99

Browse files
committed
add all clojure.string/* to built-ins
1 parent 2dd2b94 commit 41d3c99

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

src/datascript/built_ins.cljc

Lines changed: 11 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))
@@ -94,9 +94,18 @@
9494
'pr-str pr-str, 'print-str print-str, 'println-str println-str, 'prn-str prn-str,
9595
're-find re-find, 're-matches re-matches, 're-seq re-seq, 're-pattern re-pattern,
9696
'-differ? -differ?, 'get-else -get-else, 'get-some -get-some, 'missing? -missing?, 'ground identity,
97+
'tuple vector, 'untuple identity,
9798
'clojure.string/blank? str/blank?, 'clojure.string/includes? str/includes?,
9899
'clojure.string/starts-with? str/starts-with?, 'clojure.string/ends-with? str/ends-with?
99-
'tuple vector, 'untuple identity})
100+
'clojure.string/lower-case str/lower-case, 'clojure.string/upper-case str/upper-case,
101+
'clojure.string/capitalize str/capitalize, 'clojure.string/join str/join,
102+
'clojure.string/index-of str/index-of, 'clojure.string/escape str/escape,
103+
'clojure.string/last-index-of str/last-index-of, 'clojure.string/replace str/replace,
104+
'clojure.string/replace-first str/replace-first, 'clojure.string/reverse str/reverse,
105+
'clojure.string/split str/split, 'clojure.string/split-lines str/split-lines,
106+
'clojure.string/trim str/trim, 'clojure.string/trim-newline str/trim-newline,
107+
'clojure.string/triml str/triml, 'clojure.string/trimr str/trimr,
108+
})
100109

101110
;; Aggregates
102111

0 commit comments

Comments
 (0)