Parallel list generators
- Perl 6 has lazy lists.
- "Generators" represent the lazy portions of the list
@results := map { .say; $_ * 2 }, @data;
# nothing output yet, map is lazy
continued...
| Perl 6 | Parallelism in Perl 6 | #23 |
@results := map { .say; $_ * 2 }, @data;
# nothing output yet, map is lazy
continued...
|
Copyright © 2013 http://www.pmichaud.com/2013/pres/ |