Anonymous user
Apply a callback to an array: Difference between revisions
Updated D entry
(→{{header|Go}}: replace with Ruby translation) |
(Updated D entry) |
||
Line 401:
void main() {
auto
auto m = items.map!(x => x + 5)(
writeln(m);
}</lang>
{{out}}
<pre>[6, 7, 8, 9, 10]</pre>
|