Skip to content

Commit 92b0573

Browse files
neotykstuarthalloway
authored andcommitted
CLJ-975: bugfix.
:as destructuring option is not colliding anymore. Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
1 parent de6341b commit 92b0573

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/clj/clojure/core.clj

+6-2
Original file line numberDiff line numberDiff line change
@@ -3929,10 +3929,14 @@
39293929
ret))))
39303930
pmap
39313931
(fn [bvec b v]
3932-
(let [gmap (or (:as b) (gensym "map__"))
3932+
(let [gmap (gensym "map__")
39333933
defaults (:or b)]
39343934
(loop [ret (-> bvec (conj gmap) (conj v)
3935-
(conj gmap) (conj `(if (seq? ~gmap) (apply hash-map ~gmap) ~gmap)))
3935+
(conj gmap) (conj `(if (seq? ~gmap) (apply hash-map ~gmap) ~gmap))
3936+
((fn [ret]
3937+
(if (:as b)
3938+
(conj ret (:as b) gmap)
3939+
ret))))
39363940
bes (reduce1
39373941
(fn [bes entry]
39383942
(reduce1 #(assoc %1 %2 ((val entry) %2))

0 commit comments

Comments
 (0)