On Monday, April 30, 2012 17:19:00 Christian Köstlin wrote: > reduce!((int a, int b){return a+b;})(iota(100)) > reduce!("a+b")(iota(100)) > > thanks in advance
The first one directly creates a lambda, whereas the second one uses a string mixin with std.function.binaryFunc to create a lambda. The lambda generated for the second one will be the same as the one given in the first. They're just different ways to do the same thing. - Jonathan M Davis