std.algorithm.map with multiple lambdas (2.066.0-b1) (does not compile)

2014-07-05 Thread klasbo via Digitalmars-d-learn
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.

Re: std.algorithm.map with multiple lambdas (2.066.0-b1) (does not compile)

2014-07-05 Thread klasbo via Digitalmars-d-learn
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