On Tue, 16 Sep 2014 16:38:04 +0000, Simon Bürger wrote:
> 
>> sort!((a,b) => f.cmp(a, b))(data);
> 
> does in fact compile, so i guess problem is solved. Thanks guys.

Yes, this compiles because the lambda forms a closure over f.  In some 
respects this might even be better than the C++ as there is the 
possibility for inlining because the lambda literal is passed by alias.

Reply via email to