Task

Take a combined set of elements and apply a function to each element.




import std.stdio, std.algorithm;
 
void main() {
    auto items = [1, 2, 3, 4, 5];
    auto m = items.map!(x => x + 5)();
    writeln(m);
}