Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Some more about Supply.grep
  • Loading branch information
lizmat committed May 11, 2014
1 parent 2281be7 commit 63266bc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion S17-concurrency.pod
Expand Up @@ -633,8 +633,11 @@ C<Supply>, so that you only need to worry about writing the side-effect code.
=item grep

my $g = $s.grep( * > 5 );
my $g = $s.grep(Int);

Produces a C<Supply> that only provides values that are greater than 5.
Produces a C<Supply> that only provides values that you want. Takes either
a C<Callable> (which is supposed to return a C<True> value to pass on C<more>'d
values) or a value to be smartmatched against.

=item map

Expand Down

0 comments on commit 63266bc

Please sign in to comment.