digitalmars.D.learn - Make a hash out of two ranges
- Andrej Mitrovic (8/8) Feb 27 2013 import std.algorithm;
import std.algorithm;
import std.range;
void main()
{
auto r = map!((a, b) => [a : b])(["foo"], ["bar"]); // error
assert(r.front == ["foo" : "bar"]);
}
This doesn't compile, what am I missing?
Feb 27 2013








Andrej Mitrovic <andrej.mitrovich gmail.com>