Skip to content

Instantly share code, notes, and snippets.

@lizmat
Created January 8, 2017 13:05
Show Gist options
  • Save lizmat/819e753b785d3ca7db4b884beac36f89 to your computer and use it in GitHub Desktop.
Save lizmat/819e753b785d3ca7db4b884beac36f89 to your computer and use it in GitHub Desktop.
redo fix in grep
# !! Seq.new(class :: does Grepper {
# method pull-one() is raw {
# nqp::stmts(
# nqp::until(
# nqp::eqaddr(($_ := $!iter.pull-one),IterationEnd)
# || nqp::stmts(
# (my int $redo = 1),
# nqp::while(
# $redo,
# nqp::stmts(
# ($redo = 0),
# (my $result = nqp::handle(
# $!test($_),
# 'LAST', ($_ := IterationEnd),
# 'REDO', ($redo = 1)
# ))
# )
# ),
# $result
# ),
# nqp::null
# ),
# $_
# )
# }
# }.new(self, $test))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment