Perl6::GatherTake::LazyList - Lazy tied array for Perl6::GatherTake.
Perl6::GatherTake::LazyList
Perl6::GatherTake
You shouldn't use this module. Perl6::GatherTake does that transparently for you.
use Coro; use Coro::Channel; use Perl6::GatherTake::LazyList; my $queue = Coro::Channel->new(1); my $coro = async { for (1 .. 100){ my $result; # do some heavy computations here $queue->put($result); } }; my @results; tie @results, 'Perl6::GatherTake::LazyList', $coro, $queue;
Tied array implementation for Perl6::GatherTake. Again: don't use this yourself unless you really know what you're doing (and you don't).
Same as Perl6::GatherTake.
Moritz Lenz, http://moritz.faui2k.org, http://perl-6.de/. E-Mail <moritz@faui2k3.org>.
To install Perl6::GatherTake, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Perl6::GatherTake
CPAN shell
perl -MCPAN -e shell install Perl6::GatherTake
For more information on module installation, please visit the detailed CPAN module installation guide.