February 28, 2013 Make a hash out of two ranges | ||||
---|---|---|---|---|
| ||||
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? |
Copyright © 1999-2021 by the D Language Foundation