Skip to content

Commit

Permalink
Simplification for #923
Browse files Browse the repository at this point in the history
  • Loading branch information
borkdude committed Jul 23, 2024
1 parent 213ce7a commit 8d87eb2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/sci/impl/analyzer.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -1702,8 +1702,8 @@
(clojure.lang.PersistentArrayMap/createWithCheck arr))
:cljs #(PersistentArrayMap.createWithCheck (into-array %&))
:default array-map)
#?(:clj #(let [^objects arr (into-array Object %&)]
(clojure.lang.PersistentHashMap/createWithCheck arr))
#?(:clj #(let [^clojure.lang.ISeq s %&]
(clojure.lang.PersistentHashMap/createWithCheck s))
:cljs #(PersistentHashMap.createWithCheck (into-array %&))
:default hash-map)))

Expand Down Expand Up @@ -1840,7 +1840,7 @@
identity
vector expr m)
(set? expr) (analyze-vec-or-set ctx set
#?(:clj #(clojure.lang.PersistentHashSet/createWithCheck %&)
#?(:clj #(clojure.lang.PersistentHashSet/createWithCheck ^clojure.lang.ISeq %&)
:cljs #(PersistentHashSet.createWithCheck (into-array %&))
:default vector)
expr m)
Expand Down

0 comments on commit 8d87eb2

Please sign in to comment.