Skip to content

Commit

Permalink
add another &infix:<...> multi to handle the case 3 ... $+2, $max
Browse files Browse the repository at this point in the history
  • Loading branch information
moritz committed Oct 4, 2009
1 parent db7c668 commit a796cf1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/setting/Operators.pm
Expand Up @@ -10,8 +10,14 @@ multi sub infix:<...> (@lhs, @rhs) {
}
}

multi sub infix:<...>($lhs, @rhs) {
my @a = $lhs;
&infix:<...>(@a, @rhs);
}

multi sub infix:<...>($lhs, Code $generator) {
&infix:<...>([$lhs], $generator);
my @a = $lhs;
&infix:<...>(@a, $generator);
}

multi sub infix:<...> (@lhs, Code $generator, :$limit) {
Expand Down

0 comments on commit a796cf1

Please sign in to comment.