diff options
author | Geoff Liu <cangming.liu@gmail.com> | 2014-11-11 17:42:28 -0800 |
---|---|---|
committer | Geoff Liu <cangming.liu@gmail.com> | 2014-11-11 18:06:19 -0800 |
commit | 9d8d8710053a73e5099483f9e07c9d789cec73e5 (patch) | |
tree | 7da03b2bef2c7fa5e9a8ea0ddc4acf919bce980f /perl6.html.markdown | |
parent | e784f52d33475b0cba059a0c07ad01b0e63578a9 (diff) | |
parent | ad951f2615175b917b7410e667ef91d119468c5a (diff) |
Merge
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 52625bc2..9f3a03ba 100644 --- a/perl6.html.markdown +++ b/perl6.html.markdown @@ -1149,7 +1149,7 @@ my @list = 1, 3, 9 ... * > 30; # you can use a predicate # (with the Whatever Star, here). my @list = 1, 3, 9 ... { $_ > 30 }; # (equivalent to the above) -my @fib = 1, 1, *+* ... *; # lazy infinite list of prime numbers, +my @fib = 1, 1, *+* ... *; # lazy infinite list of fibonacci series, # computed using a closure! my @fib = 1, 1, -> $a, $b { $a + $b } ... *; # (equivalent to the above) my @fib = 1, 1, { $^a + $^b } ... *; #(... also equivalent to the above) |