[Issue 10039] std.algorithm enhancements: min, max, clamp
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Jun 21 09:31:36 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10039
bearophile_hugs at eml.cc changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bearophile_hugs at eml.cc
--- Comment #3 from bearophile_hugs at eml.cc 2013-06-21 09:31:35 PDT ---
Regarding max(x) and min(x) what are the use cases? I don't see any.
Regarding clamp(), sometimes I need a function like that. But I think it's
better to design it like this: clamp(var, a, b) so it's usable in UFCS chains.
--
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