Skip to content

Commit

Permalink
Fix rakudo install
Browse files Browse the repository at this point in the history
Another temp commit. The method is skip-one, not skip. It used to
build but not install, now both work fine.
  • Loading branch information
AlexDaniel committed Jul 7, 2020
1 parent c9a4f07 commit 9c19fdd
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/core.c/Seq.pm6
Expand Up @@ -52,9 +52,10 @@ my class Seq is Cool does Iterable does Sequence {
else {
my int $skip = $idx - $!produced;
$!produced = $idx;
$!iter.skip($skip)
?? $!iter.pull-one
!! Nil
nqp::while($skip && $!iter.skip-one, --$skip);
$skip
?? Nil
!! $!iter.pull-one
}
}

Expand All @@ -65,9 +66,10 @@ my class Seq is Cool does Iterable does Sequence {
else {
my int $skip = $idx - $!produced;
$!produced = $idx;
$!iter.skip($skip)
?? $!iter.pull-one
!! Nil
nqp::while($skip && $!iter.skip-one, --$skip);
$skip
?? Nil
!! $!iter.pull-one
}
}

Expand Down

0 comments on commit 9c19fdd

Please sign in to comment.