Why map return [] ?

Suliman via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Apr 14 08:29:33 PDT 2017


auto x = MySQLTablesRange.map!(a=>a);
writeln(x);

return: []

while next code:
MySQLTablesRange.each!(a=>a.writeln);

return data line by line.

Why?


More information about the Digitalmars-d-learn mailing list