http://d.puremagic.com/issues/show_bug.cgi?id=2928





------- Comment #3 from and...@metalanguage.com  2009-05-03 16:06 -------
(In reply to comment #2)
> Keep in mind that Haskell's parameter ordering is based on partial 
> application,
> a feature that D obviously does not have.  
> 

Sort of does:

import std.functional, std.range, std.stdio;

void main() {
    auto a = [ 1, 2, 3 ][];
    alias curry!(take, 2) take2;
    foreach (e; take2(a)) { writeln(e); }
}

But I agree there are good arguments in favor of swapping arguments.


-- 

Reply via email to