-
-
Save MasterDuke17/697b0058518e169fa9e2c1ebf68d2971 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/core/List.pm6 b/src/core/List.pm6 | |
index f136149e6..33af30fa1 100644 | |
--- a/src/core/List.pm6 | |
+++ b/src/core/List.pm6 | |
@@ -346,13 +346,8 @@ my class List does Iterable does Positional { # declared in BOOTSTRAP | |
nqp::bindattr(list, List, '$!reified', iterbuffer); | |
my int $elems = +@things; # reify | |
- my int $i = -1; | |
- my $reified := nqp::getattr(@things,List,'$!reified'); | |
+ nqp::splice(iterbuffer,nqp::getattr(@things,List,'$!reified'),0,0); | |
- nqp::while( # doesn't sink | |
- nqp::islt_i($i = nqp::add_i($i,1),$elems), | |
- nqp::bindpos(iterbuffer,$i,(nqp::atpos($reified,$i))) | |
- ); | |
list | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment