Skip to content

Commit

Permalink
Prevent confusion with Iterator role
Browse files Browse the repository at this point in the history
  • Loading branch information
lizmat committed Aug 28, 2018
1 parent 8275584 commit 0f05d27
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/BagHash.pm6
Expand Up @@ -172,7 +172,7 @@ my class BagHash does Baggy {
)
}

my class Iterator does Rakudo::Iterator::Mappy {
my class Iterate does Rakudo::Iterator::Mappy {
method pull-one() is raw {
nqp::if(
$!iter,
Expand All @@ -192,7 +192,7 @@ my class BagHash does Baggy {
)
}
}
multi method iterator(BagHash:D:) { Iterator.new($!elems) } # also .pairs
multi method iterator(BagHash:D:) { Iterate.new($!elems) } # also .pairs

my class Values does Rakudo::Iterator::Mappy {
method pull-one() is raw {
Expand Down

0 comments on commit 0f05d27

Please sign in to comment.