Skip to content

Commit

Permalink
allow more smartmatches than just Callable on ...
Browse files Browse the repository at this point in the history
  • Loading branch information
TimToady committed Aug 29, 2015
1 parent a057dd4 commit 81229f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/operators.pm
Expand Up @@ -456,7 +456,7 @@ multi sub infix:<...>(|lol) {
}
if $i {
@end[$i-1] := @seq[$i].pull-one;
if @end[$i-1] !~~ Callable {
if @end[$i-1] ~~ Numeric | Stringy {
if @lol[$i] ~~ Iterable {
@seq[$i] := @lol[$i].iterator;
}
Expand Down

0 comments on commit 81229f7

Please sign in to comment.