Should the code below print anything (it currently doesn't)? I'm not sure I understand map:

import std.stdio, std.algorithm;        

void main() {
    int[] a = [1,2,3,4,5];
    auto r = a.map!( i => writeln(i) );
    while(!r.empty) r.popFront();
}

Reply via email to