Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Make sure sub split() passes all nameds as well
  • Loading branch information
lizmat committed Nov 7, 2015
1 parent 4aa63f0 commit f4266f2
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/core/Cool.pm
Expand Up @@ -365,11 +365,9 @@ sub sprintf(Cool $format, *@args) {
);
}

sub printf(Cool $format, *@args) { print sprintf $format, @args };
sub printf(Cool $format, *@args) { print sprintf $format, @args }
sub samecase(Cool $string, Cool $pattern) { $string.samecase($pattern) }
sub split($pat, Cool $target, $limit = Inf, :$all) {
$target.split($pat, $limit, :$all);
}
sub split($pat, Cool $target, |c) { $target.split($pat, |c) }

proto sub chars($) is pure {*}
multi sub chars(Cool $x) { $x.Str.chars }
Expand Down

0 comments on commit f4266f2

Please sign in to comment.