Re: What's the Perl 6 equivalent of Python `itertools.chain`?

2016-12-08 Thread Timo Paulssen
Something like this should do what you want: timo@schmand ~> perl6 -e 'my $a = gather for ^5 { say "get from a!"; take $_ }; my $b = gather for ^5 { say "get from b!"; take 10 * $_ + 1 }; .say for (|$a, |$b)' get from a! 0 get from a! 1 get from a! 2 get from a! 3 get from a! 4 get from b! 1 get f

What's the Perl 6 equivalent of Python `itertools.chain`?

2016-12-07 Thread Hiroki Horiuchi
Hello. I mean, I need a way to concat lazy lists into a lazy list. Thanks. -- Hiroki Horiuchi from Japan