import std.algorithm, std.array;
void main() {
auto arr = [1, 2, 3, 4, 5];
int toAdd = 42;
auto arr2 = arr.map!(a => a + toAdd)().array();
}
test.d(6): Error: no property 'array' for type 'Result'
Comment #1 by eco — 2012-03-19T11:19:17Z
I've tested and this works fine in 2.059 HEAD as of today. It should be closed (I'm not sure of the protocol who closes issues or I'd just close it myself).
Comment #2 by bearophile_hugs — 2012-03-19T11:56:55Z
This is now working. It's currently working even too much well (see Bug 7722 that already has a patch).