diff options
author | NickPapanastasiou <nickpap9411@gmail.com> | 2015-06-10 14:13:38 -0400 |
---|---|---|
committer | NickPapanastasiou <nickpap9411@gmail.com> | 2015-06-10 14:13:38 -0400 |
commit | f30876d3f659d2c28ebe97bd4416d4dd514e5d22 (patch) | |
tree | f162063ee3a41f0098555392647955ce16dce69d /d.html.markdown | |
parent | 455875cd919d829874156ea97887e514e2b06493 (diff) |
So much D in my life
Diffstat (limited to 'd.html.markdown')
-rw-r--r-- | d.html.markdown | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/d.html.markdown b/d.html.markdown index 4b993a2d..36153500 100644 --- a/d.html.markdown +++ b/d.html.markdown @@ -205,6 +205,7 @@ void main() { // from 1 to 100. Easy! // Just pass lambda expressions as template parameters! + // You can pass any old function you like, but lambdas are convenient here. auto num = iota(1, 101).filter!(x => x % 2 == 0) .map!(y => y ^^ 2) .reduce!((a, b) => a + b); |