Skip to content

Commit

Permalink
fix previous merge, and remove workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
moritz committed Feb 23, 2009
1 parent 0e7dd5e commit 592bd42
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/setting/Str.pm
Expand Up @@ -25,13 +25,13 @@ class Str is also {
$delimiter = ~$delimiter;
return gather {
my $pos;
# work around a rakudo bug: "102030405".index(0, 10).defined is True
while $prev <= self.chars
&& defined ($pos = self.index($delimiter, $prev)) {
while defined ($pos = self.index($delimiter, $prev)) {
take self.substr($prev, $pos - $prev);
$prev = $pos + $delimiter.chars;
}
take self.substr($prev);
}
}

our List multi method comb (Code $matcher = /\S+/, $limit = *) {
my $l = $limit ~~ Whatever ?? Inf !! $limit;
Expand Down

0 comments on commit 592bd42

Please sign in to comment.