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
gather+while only takes last value tested #594
Comments
From mah@everybody.orgI was working on Euler problem 2 2,8,34,144,610,2584,10946,46368,196418,832040,3524578 Under rakudo, I get the following output: Use of uninitialized value Here's the source: -=-=- cut -=-=- class Fibonacci { method next() { my $fibber = Fibonacci.new; my @r = gather { |
From jswitzer@gmail.comWhen mixing gather with a while loop, only the last element tested by the my @list = gather { At this point, @list only contains [11, 11, 11, 11, 11]. If the while loop Tested on: revision 35352 built on parrot 0.8.2-devel for Thanks, Jason "s1n" Switzer |
From amahabal@gmail.com<ecode> my @y = gather { </ecode> produces 55555. |
From @moritzOn Tue Mar 03 23:09:55 2009, abhijit wrote:
Thanks for your report. Cheers, |
The RT System itself - Status changed from 'new' to 'open' |
From @bacekOn Sat Jan 10 17:30:23 2009, s1n wrote:
Patch to clone argument of "take" available at http://github.com/bacek/rakudo/commit/a87de35bf576ac612f97b6d01fbcc7b7a8ee72cf -- |
The RT System itself - Status changed from 'new' to 'open' |
From @colomonrakudo: my @a = gather loop (my $i = 1; $i < 10; $i++) { take $i }; @a.perl.say; -- |
From @moritzMiraculously the tests now pass, so I'm closing this ticket. Feel free |
@moritz - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#62178 (status was 'resolved')
Searchable as RT62178$
The text was updated successfully, but these errors were encountered: