summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorven <vendethiel@hotmail.fr>2015-03-20 22:55:26 +0100
committerven <vendethiel@hotmail.fr>2015-03-20 22:55:26 +0100
commit5806c4f298d8403ddc0b4d6b5bb58ae11b07338f (patch)
tree372886a8f1421c644814191c5c5932c73733a041
parenta6ea67e733d9ecede6c2d29d42a983ae4ffb4506 (diff)
parent7243f13fc6462e9fee8d463e13446ab7339e9d67 (diff)
Merge pull request #1012 from ronaldxs/patch-1
thrice .... gather ^3 counts three times "0 1 2" not 5
-rw-r--r--perl6.html.markdown2
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 !!