We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 296d0a6 commit b35d693Copy full SHA for b35d693
src/main/cljs/cljs/core.cljs
@@ -1865,7 +1865,7 @@ reduces them without incurring seq initialization"
1865
:else not-found)
1866
not-found)))
1867
1868
-(declare PersistentHashMap)
+(declare PersistentHashMap PersistentArrayMap)
1869
1870
(defn assoc
1871
"assoc[iate]. When applied to a map, returns a new map of the
@@ -1875,7 +1875,7 @@ reduces them without incurring seq initialization"
1875
([coll k v]
1876
(if-not (nil? coll)
1877
(-assoc coll k v)
1878
- (hash-map k v)))
+ (array-map k v)))
1879
([coll k v & kvs]
1880
(let [ret (assoc coll k v)]
1881
(if kvs
0 commit comments