Skip to content

Instantly share code, notes, and snippets.

@Tux
Created July 8, 2015 10:10
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 Tux/47d333430eb1a966ded1 to your computer and use it in GitHub Desktop.
Save Tux/47d333430eb1a966ded1 to your computer and use it in GitHub Desktop.
when Supply {
$fragment ~~ s:i{^ "row=" } = "" and self.rowrange ($fragment);
my int $i = 0;
#@in = gather while ($in.tap) -> $r { !$!rrange || $!rrange.in ($i++) and take $r };
@in = gather {
$in.act: {
("Act ", $_).say;
!$!rrange || $!rrange.in ($i++) and take $_;
}
#$in.wait;
};
@in.perl.say;
}
=>
Act foo,bar,baz
[]<>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment