Lazily evaluate items in a list
Author: Scott Penrose
Source code: lazy-evaluation.pl
#!/usr/bin/env perl6 use v6; my @fibonacci = 1, 1, { $^a + $^b } ... *; say @fibonacci[6]; # 13
Author: Scott Penrose
Source code: lazy-evaluation.pl
#!/usr/bin/env perl6 use v6; my @fibonacci = 1, 1, { $^a + $^b } ... *; say @fibonacci[6]; # 13