www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - max function

reply Paul D. Anderson <paul.d.removethis.anderson comcast.andthis.net> writes:
Okay, where is the max(a,b) function in phobos?

I realize it's a dead simple template implementation but I thought it would be
implemented somewhere.

Paul
Jun 19 2009
parent reply Jarrett Billingsley <jarrett.billingsley gmail.com> writes:
On Fri, Jun 19, 2009 at 5:05 PM, Paul D.
Anderson<paul.d.removethis.anderson comcast.andthis.net> wrote:
 Okay, where is the max(a,b) function in phobos?

 I realize it's a dead simple template implementation but I thought it would be
implemented somewhere.

 Paul
In D2, it's in std.algorithm. There isn't one in D1.
Jun 19 2009
parent Paul D. Anderson <paul.d.removethis.anderson comcast.andthis.net> writes:
Jarrett Billingsley Wrote:

 On Fri, Jun 19, 2009 at 5:05 PM, Paul D.
 Anderson<paul.d.removethis.anderson comcast.andthis.net> wrote:
 Okay, where is the max(a,b) function in phobos?

 I realize it's a dead simple template implementation but I thought it would be
implemented somewhere.

 Paul
In D2, it's in std.algorithm. There isn't one in D1.
Thanks.
Jun 19 2009