Skip to content

Commit f6abdc8

Browse files
committed
docstrings for all the :lite-mode ctor fns that are not intended to be used directly
1 parent cc0d6e0 commit f6abdc8

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/main/cljs/cljs/core.cljs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12494,12 +12494,14 @@ reduces them without incurring seq initialization"
1249412494
(set! (. VectorLite -fromArray) (fn [xs] (VectorLite. nil xs nil)))
1249512495

1249612496
(defn vector-lite
12497+
":lite-mode version of vector, not intended to be used directly."
1249712498
[& args]
1249812499
(if (and (instance? IndexedSeq args) (zero? (.-i args)))
1249912500
(.fromArray VectorLite (aclone (.-arr args)))
1250012501
(VectorLite. nil (into-array args) nil)))
1250112502

1250212503
(defn vec-lite
12504+
":lite-mode version of vec, not intended to be used directly."
1250312505
[coll]
1250412506
(cond
1250512507
(map-entry? coll)
@@ -12742,8 +12744,7 @@ reduces them without incurring seq initialization"
1274212744
(set! (. ObjMap -fromObject) (fn [ks obj] (ObjMap. nil ks obj nil)))
1274312745

1274412746
(defn obj-map
12745-
"keyval => key val
12746-
Returns a new object map with supplied mappings."
12747+
":lite-mode simple key hash-map, not intended to be used directly."
1274712748
[& keyvals]
1274812749
(let [ks (array)
1274912750
obj (js-obj)]
@@ -12973,8 +12974,7 @@ reduces them without incurring seq initialization"
1297312974
out)))))
1297412975

1297512976
(defn hash-map-lite
12976-
"keyval => key val
12977-
Returns a new hash map with supplied mappings."
12977+
":lite-mode version of hash-map, not intended to be used directly."
1297812978
[& keyvals]
1297912979
(loop [in (seq keyvals), out (. HashMapLite -EMPTY)]
1298012980
(if in
@@ -13095,6 +13095,7 @@ reduces them without incurring seq initialization"
1309513095
(set! (. SetLite -EMPTY) (SetLite. nil (. HashMapLite -EMPTY) empty-unordered-hash))
1309613096

1309713097
(defn set-lite
13098+
":lite-mode version of set, not intended ot be used directly."
1309813099
[coll]
1309913100
(if (set? coll)
1310013101
(-with-meta coll nil)

0 commit comments

Comments
 (0)