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 d79eda3 commit 5ad96a8Copy full SHA for 5ad96a8
src/main/cljs/cljs/core.cljs
@@ -1973,9 +1973,11 @@ reduces them without incurring seq initialization"
1973
val(s). When applied to a vector, returns a new vector that
1974
contains val at index. Note - index must be <= (count vector)."
1975
([coll k v]
1976
- (if-not (nil? coll)
1977
- (-assoc coll k v)
1978
- (array-map k v)))
+ (if (implements? IAssociative coll)
+ (-assoc coll k v)
+ (if-not (nil? coll)
1979
1980
+ (array-map k v))))
1981
([coll k v & kvs]
1982
(let [ret (assoc coll k v)]
1983
(if kvs
0 commit comments