diff options
author | ven <vendethiel@hotmail.fr> | 2014-11-10 11:23:32 +0100 |
---|---|---|
committer | ven <vendethiel@hotmail.fr> | 2014-11-10 11:23:32 +0100 |
commit | fc5eb4af1bcd6d564d7d5b2bd883d7d3342c6547 (patch) | |
tree | 82d8835d93823e3c49e873790382d197bbd1a872 /perl6.html.markdown | |
parent | 8e7b8521ca98e49ebff6efb34c7ce32567cc4a63 (diff) | |
parent | 9576d80b75a025740775b7a16ee327403df25e88 (diff) |
Merge pull request #852 from MContagious/master
Update perl6.html.markdown
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) |