diff --git a/src/cljs/cljs/core.cljs b/src/cljs/cljs/core.cljs index 86841b75fc..a8b17c337c 100644 --- a/src/cljs/cljs/core.cljs +++ b/src/cljs/cljs/core.cljs @@ -324,6 +324,8 @@ reduces them without incurring seq initialization" (recur (f val (-nth cicoll n)) (inc n)) val)))) +(declare hash-coll cons) + (deftype IndexedSeq [a i] ISeqable (-seq [this] this) @@ -1041,6 +1043,8 @@ reduces them without incurring seq initialization" (str* sb))) (gstring/StringBuffer. (str* x)) ys))) +(declare apply) + (defn str "With no args, returns the empty string. With one arg x, returns x.toString(). (str nil) returns the empty string. With more than @@ -1098,6 +1102,8 @@ reduces them without incurring seq initialization" (defn- hash-coll [coll] (reduce #(hash-combine %1 (hash %2)) (hash (first coll)) (next coll))) +(declare name) + (defn- extend-object! "Takes a JavaScript object and a map of names to functions and attaches said functions as methods on the object. Any references to @@ -1220,8 +1226,6 @@ reduces them without incurring seq initialization" [x seq] (Cons. nil x seq)) -(declare hash-map) - (extend-type string IHash (-hash [o] (goog.string/hashCode o)) @@ -2234,7 +2238,6 @@ reduces them without incurring seq initialization" (> a b) 1 :else 0))) -(declare hash-map) (deftype ObjMap [meta keys strobj] IWithMeta (-with-meta [coll meta] (ObjMap. meta keys strobj))