Skip to content

Instantly share code, notes, and snippets.

@zoffixznet

zoffixznet/p6.p6 Secret

Created September 26, 2018 15:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zoffixznet/abfccebc456f61eb028d01c94229fe0b to your computer and use it in GitHub Desktop.
Save zoffixznet/abfccebc456f61eb028d01c94229fe0b to your computer and use it in GitHub Desktop.
nqp::stmts(
nqp::if(
nqp::isge_i(nqp::getattr_i($!cursor,Match,'$!pos'),0),
nqp::stmts(
(my $pulled := $!cursor),
($!cursor := $!move($!cursor)),
$!post($pulled)),
IterationEnd),
($pulled := $!cursor),
($!cursor := $!move($!cursor)),
$!post($pulled),
nqp::if(
nqp::isge_i(nqp::getattr_i($!cursor,Match,'$!pos'),0),
nqp::stmts(
(my $pulled := $!cursor),
($!cursor := $!move($!cursor)),
$!post($pulled)),
IterationEnd))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment