Parametric polymorphism: Difference between revisions
Content deleted Content added
D entry: updated and improved |
Better D entry |
||
Line 224:
// Show the arrays of the whole tree.
//root.tmap(x => writefln("%(%.2f %)", x));
root.tmap((ref
// Modify the arrays of the whole tree.
//root.tmap((x){ x[] += 10; });
root.tmap((ref
// Show the arrays of the whole tree again.
writeln();
//root.tmap(x => writefln("%(%.2f %)", x));
root.tmap((ref
}</lang>
{{out}}
|