We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Don't know if it's a limitation or a bug, but if you try to take an uncached Seq it will end up consumed by the time it gets to the other end:
take
Seq
$ perl6 -e 'dd gather { ().Seq.take }' (Seq.new-consumed(),).Seq $ perl6 -e 'use nqp; dd gather { THROW(nqp::const::CONTROL_TAKE, ().Seq) }' (Seq.new-consumed(),).Seq $ perl6 -v This is Rakudo version 2018.03-216-g7b5ccaa built on MoarVM version 2018.03-99-g4234ab5 implementing Perl 6.c.
Originally discovered through ... op's use, which does a .take under the hood.
...
.take
The text was updated successfully, but these errors were encountered:
Doh. It's the sink that kills it:
$ perl6 -e 'dd gather { $ := ().Seq.take }' (().Seq,).Seq
Gonna patch up SEQUENCE.
Sorry, something went wrong.
No branches or pull requests
Don't know if it's a limitation or a bug, but if you try to
takean uncachedSeqit will end up consumed by the time it gets to the other end:Originally discovered through
...op's use, which does a.takeunder the hood.The text was updated successfully, but these errors were encountered: