Apply a callback to an array: Difference between revisions
Content added Content deleted
(→{{header|D}}: +std.algorithm) |
|||
Line 305: | Line 305: | ||
); |
); |
||
}</d> |
}</d> |
||
Using std.algorithm: |
|||
<d>writefln(map!("a + 5")([1, 2, 3, 4, 5]));</d> |
|||
=={{header|E}}== |
=={{header|E}}== |