New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
take accepts only one argument #1839
Comments
From @cognominal[11:46:54] <cognominal> is there a reason why take accepts only one argument? http://irclog.perlgeek.de/perl6/2010-06-16#i_2443346 for the whole discussion. -- |
From @pmichaudThis appears to have been fixed in 43c38f6f (moritz++) -- assigning Pm |
The RT System itself - Status changed from 'new' to 'open' |
From @kylehaThis is an automatically generated mail to inform you that tests are now available in t/spec/S04-statements/gather.t commit 98425f05d0427d9d78592a75a18b00039bdabc9f [t/spec] test for RT #75794 - take() with multiple arguments Inline Patchdiff --git a/t/spec/S04-statements/gather.t b/t/spec/S04-statements/gather.t
index 298ddd7..77da1e7 100644
--- a/t/spec/S04-statements/gather.t
+++ b/t/spec/S04-statements/gather.t
@@ -2,7 +2,7 @@ use v6;
use Test;
-plan 14;
+plan 16;
# L<S04/The C<gather> statement prefix/>
@@ -135,4 +135,13 @@ plan 14;
is ~@list, "2 4 6 8 10", "gather with nested loop";
}
+{
+ is (gather { take 1, 2, 3; take 4, 5, 6; }).elems, 2,
+ 'take with multiple arguments produces one item each';
+
+ is (gather { take 1, 2, 3; take 4, 5, 6; }).flat.elems, 6,
+ 'take with multiple arguments .flat tens out';
+}
+
+
# vim: ft=perl6 |
@moritz - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#75794 (status was 'resolved')
Searchable as RT75794$
The text was updated successfully, but these errors were encountered: