-
-
Save zoffixznet/02c6b10cc15230df3c681332a9d907d2 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
use nqp; | |
Seq.^lookup("iterator").wrap: method (|) { | |
say nqp::getattr(self, Seq, '$!iter').defined ?? 'Not consumed yet' !! 'Already consumed'; | |
say "touched in: "; | |
for 3..20 { try say "\t -> {.name || <anon>} ({.file}:{.line})" with callframe($_).code } | |
put(); | |
nextsame; | |
}; | |
sub foo { | |
my $s := <a b c>.map: *.uc; | |
.print for $s; | |
.print for $s; | |
}() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment