void main(){
import std.algorithm, std.stdio;
auto arr = [1,2,3];
arr.map!("a + a", "a * a").writeln; //compiles
arr.map!(a => a + a, a => a * a).writeln; //does not
}
If I define two functions outside main, it works:
void main(){
import std.algorithm, std.
On Saturday, 5 July 2014 at 19:31:24 UTC, Marc Schütz wrote:
This is an instance of these bugs:
https://issues.dlang.org/show_bug.cgi?id=5710
https://issues.dlang.org/show_bug.cgi?id=11946
But seeing that `map` works with a single lambda/local
function, it should be possible to make it work wi