Skip to content

Commit

Permalink
Change signature on .rotor
Browse files Browse the repository at this point in the history
- as a fix for R#3444
- the described problem occurred in the handling of the rotor spec
  *not* in the actual running of the .rotor function
- not 100% sure this is the right solution
- is spectest clean
  • Loading branch information
lizmat committed Feb 13, 2020
1 parent 8fd7172 commit c7e0df6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core.c/Any-iterable-methods.pm6
Expand Up @@ -2084,7 +2084,7 @@ Consider using a block if any of these are necessary for your mapping code."
multi method rotor(Any:D: Int:D $batch, :$partial) {
Seq.new(Rakudo::Iterator.Batch(self.iterator,$batch,$partial))
}
multi method rotor(Any:D: *@cycle, :$partial) {
multi method rotor(Any:D: +@cycle, :$partial) {
Seq.new(Rakudo::Iterator.Rotor(self.iterator,@cycle,$partial))
}
}
Expand Down

0 comments on commit c7e0df6

Please sign in to comment.