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 from b! 11 get from b! 21 get from b! 31 get from b! 41
Hope that helps! - Timo On 08/12/16 04:56, Hiroki Horiuchi wrote: > Hello. > > I mean, I need a way to concat lazy lists into a lazy list. > > Thanks. > -- > Hiroki Horiuchi from Japan