8000 * src/cljs/cljs/core.cljs: clean up delcares · clojure/clojurescript@9eadccd · GitHub
[go: up one dir, main page]

Skip to content

Commit 9eadccd

Browse files
committed
* src/cljs/cljs/core.cljs: clean up delcares
1 parent 5365601 commit 9eadccd

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/cljs/cljs/core.cljs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,8 @@ reduces them without incurring seq initialization"
324324
(recur (f val (-nth cicoll n)) (inc n))
325325
val))))
326326

327+
(declare hash-coll cons)
328+
327329
(deftype IndexedSeq [a i]
328330
ISeqable
329331
(-seq [this] this)
@@ -1041,6 +1043,8 @@ reduces them without incurring seq initialization"
10411043
(str* sb)))
10421044
(gstring/StringBuffer. (str* x)) ys)))
10431045

1046+
(declare apply)
1047+
10441048
(defn str
10451049
"With no args, returns the empty string. With one arg x, returns
10461050
x.toString(). (str nil) returns the empty string. With more than
@@ -1098,6 +1102,8 @@ reduces them without incurring seq initialization"
10981102
(defn- hash-coll [coll]
10991103
(reduce #(hash-combine %1 (hash %2)) (hash (first coll)) (next coll)))
11001104

1105+
(declare name)
1106+
11011107
(defn- extend-object!
11021108
"Takes a JavaScript object and a map of names to functions and
11031109
attaches said functions as methods on the object. Any references to
@@ -1220,8 +1226,6 @@ reduces them without incurring seq initialization"
12201226
[x seq]
12211227
(Cons. nil x seq))
12221228

1223-
(declare hash-map)
1224-
12251229
(extend-type string
12261230
IHash
12271231
(-hash [o] (goog.string/hashCode o))
@@ -2234,7 +2238,6 @@ reduces them without incurring seq initialization"
22342238
(> a b) 1
22352239
:else 0)))
22362240

2237-
(declare hash-map)
22382241
(deftype ObjMap [meta keys strobj]
22392242
IWithMeta
22402243
(-with-meta [coll meta] (ObjMap. meta keys strobj))

0 commit comments

Comments
 (0)
0