Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
listop map no longer flattens
  • Loading branch information
TimToady committed Sep 19, 2015
1 parent d9c21e9 commit 244b7b4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/core/Str.pm
Expand Up @@ -660,16 +660,16 @@ my class Str does Stringy { # declared in BOOTSTRAP
$prev-pos = .to;
# we don't want the dummy object
$elems-- ?? Slip.new($value, $_) !! $value;
}, matches, Match.new( :from(self.chars) );
# ^-- add dummy for last
}, flat matches, Match.new( :from(self.chars) );
# ^-- add dummy for last
}
else {
map {
my $value = substr(self, $prev-pos, .from - $prev-pos);
$prev-pos = .to;
$value;
}, matches, Match.new( :from(self.chars) );
# ^-- add dummy for last
}, flat matches, Match.new( :from(self.chars) );
# ^-- add dummy for last
}
}

Expand Down

0 comments on commit 244b7b4

Please sign in to comment.