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

           Summary: std.algorithm enhancements: min, max, clamp
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Phobos
        AssignedTo: nob...@puremagic.com
        ReportedBy: digg...@googlemail.com


--- Comment #0 from Diggory <digg...@googlemail.com> 2013-05-07 11:57:51 PDT ---
Since min/max are supposed to be variadic they should also accept a single
parameter.

min(var) == var
max(var) == var

Also a natural extension of min/max is clamp:

clamp(a, b, var) == max(a, min(b, var))

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

Reply via email to