Skip to content

Commit

Permalink
Avoid a little indirection in split(/regex/)
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn committed Jun 10, 2019
1 parent 9107215 commit ce30ff2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Str.pm6
Expand Up @@ -1483,7 +1483,7 @@ my class Str does Stringy { # declared in BOOTSTRAP
!! self.match($pat, :x(1..$limit-1));

my str $str = nqp::unbox_s(self);
my int $elems = +matches; # make sure all reified
my int $elems = matches.elems; # make sure all reified
return Seq.new(Rakudo::Iterator.OneValue(self)) unless $elems;

my $matches := nqp::getattr(matches,List,'$!reified');
Expand Down

0 comments on commit ce30ff2

Please sign in to comment.