diff options
author | Kishore Relangi <kisree@gmail.com> | 2014-11-10 15:50:47 +0530 |
---|---|---|
committer | Kishore Relangi <kisree@gmail.com> | 2014-11-10 15:50:47 +0530 |
commit | 9576d80b75a025740775b7a16ee327403df25e88 (patch) | |
tree | 82d8835d93823e3c49e873790382d197bbd1a872 /perl6.html.markdown | |
parent | 8e7b8521ca98e49ebff6efb34c7ce32567cc4a63 (diff) |
Update perl6.html.markdown
It is actually generating fibonacci series
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) |