diff options
author | ronaldxs <ronaldxs@software-path.com> | 2015-03-20 16:40:25 -0400 |
---|---|---|
committer | ronaldxs <ronaldxs@software-path.com> | 2015-03-20 16:40:25 -0400 |
commit | 7243f13fc6462e9fee8d463e13446ab7339e9d67 (patch) | |
tree | 372886a8f1421c644814191c5c5932c73733a041 /perl6.html.markdown | |
parent | a6ea67e733d9ecede6c2d29d42a983ae4ffb4506 (diff) |
thrice .... gather ^3 counts three times "0 1 2" not 5
Probably just a paste-o mistake. Want to count 3 times not 5.
Diffstat (limited to 'perl6.html.markdown')
-rw-r--r-- | perl6.html.markdown | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perl6.html.markdown b/perl6.html.markdown index 85ab1d79..1b320028 100644 --- a/perl6.html.markdown +++ b/perl6.html.markdown @@ -963,7 +963,7 @@ say join ',', gather if False { # But consider: constant thrice = gather for ^3 { say take $_ }; # Doesn't print anything # versus: -constant thrice = eager gather for ^3 { say take $_ }; #=> 0 1 2 3 4 +constant thrice = eager gather for ^3 { say take $_ }; #=> 0 1 2 # - `lazy` - Defer actual evaluation until value is fetched (forces lazy context) # Not yet implemented !! |