On Sunday, 21 June 2015 at 10:06:15 UTC, biozic wrote:
You can use a template alias parameter with a default value that is your default lambda:int indexOfMax(alias fun = a => a, R)(R range) { // Use `fun` here like a function. } -- Nico
Thanks a lot, it works !!