frioux / Syntax-Keyword-Gather

Implements the Perl 6 'gather/take' control structure in Perl 5
https://metacpan.org/pod/Syntax::Keyword::Gather
3 stars 9 forks source link

"take" instead of "take $_" #4

Closed maettu closed 10 years ago

maettu commented 10 years ago

add feature for Perl 5 style "$_ less take", like so:

my @results = gather { for (1..20){ take if /2/; # instead of 'take $_' } };

If this can be merged I will add some documentation, should that be desired.

frioux commented 10 years ago

I'll merge it if you add docs and tests.

maettu commented 10 years ago

done

Am 09.03.2014 15:30, schrieb fREW Schmidt:

I'll merge it if you add docs and tests.

— Reply to this email directly or view it on GitHub https://github.com/frioux/Syntax-Keyword-Gather/pull/4#issuecomment-37128124.

coveralls commented 10 years ago

Coverage Status

Coverage remained the same when pulling 67ba5629a70cda165c2d17b0a5a84285522b4c25 on maettu:master into 2bdc1bdc69bc52998fad54cb3f84a6711bbbee48 on frioux:master.

frioux commented 10 years ago

merged, will release shortly