[Issue 4391] New: std.functional.curry is not a real curry

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Jun 25 06:37:53 PDT 2010


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

           Summary: std.functional.curry is not a real curry
           Product: D
           Version: D2
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody at puremagic.com
        ReportedBy: graham.fawcett at gmail.com


--- Comment #0 from Graham Fawcett <graham.fawcett at gmail.com> 2010-06-25 06:37:50 PDT ---
The "curry" template in std.functional is not actually a curry, but a partial
application. 

A curry function should take a single argument, a binary function:

  (A a, B b) { return ... }

and return a nested unary function:

  (A a) { return (B b) { return ... }; };

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list