Skip to content

Commit

Permalink
When using Set semantics in (^), the weight is always 1
Browse files Browse the repository at this point in the history
Fixes #4118, 0racle++ for the spot
  • Loading branch information
lizmat committed Dec 16, 2020
1 parent 0d301fa commit 7b6de5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core.c/set_symmetric_difference.pm6
Original file line number Diff line number Diff line change
Expand Up @@ -335,14 +335,14 @@ multi sub infix:<(^)>(+@p) { # also Any
handle-existing( # seen this element before
elems,
$iter,
nqp::istrue(nqp::iterval($iter))
1
),
handle-new( # new element
elems,
$iter,
nqp::p6bindattrinvres(
nqp::create(Pair),Pair,'$!key',nqp::iterval($iter)),
nqp::istrue(nqp::iterval($iter))
1
)
)
)
Expand Down

0 comments on commit 7b6de5c

Please sign in to comment.