Skip to content
Permalink
Browse files

Avoid a little indirection in split(/regex/)

  • Loading branch information...
jnthn committed Jun 10, 2019
1 parent 9107215 commit ce30ff2aa9dcc8febe4272d1fc8fb7c487d77a56
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/Str.pm6
@@ -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');

0 comments on commit ce30ff2

Please sign in to comment.
You can’t perform that action at this time.