Skip to content

Commit

Permalink
remove reflection introduced in destructure
Browse files Browse the repository at this point in the history
  • Loading branch information
richhickey committed Jun 14, 2012
1 parent 4ddb397 commit 085712b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/clj/clojure/core.clj
Expand Up @@ -3930,9 +3930,10 @@
pmap
(fn [bvec b v]
(let [gmap (gensym "map__")
gmapseq (with-meta gmap {:tag 'clojure.lang.ISeq})
defaults (:or b)]
(loop [ret (-> bvec (conj gmap) (conj v)
(conj gmap) (conj `(if (seq? ~gmap) (clojure.lang.PersistentHashMap/create ~gmap) ~gmap))
(conj gmap) (conj `(if (seq? ~gmap) (clojure.lang.PersistentHashMap/create ~gmapseq) ~gmap))
((fn [ret]
(if (:as b)
(conj ret (:as b) gmap)
Expand Down

0 comments on commit 085712b

Please sign in to comment.