integer max, min?

Steven Schveighoffer schveiguy at yahoo.com
Tue Oct 2 09:21:56 PDT 2007


"Paolo Invernizzi" <arathorn at NO_SPAMfastwebnet.it> wrote in message 
news:fdt65v$1306$1 at digitalmars.com...
> Silly question...
>
> Where are in Phobos the max and min for integers?
>
> Thanks, Paolo

try x < y ? x : y for min(x, y)
and x > y ? x : y for max(x, y)

-Steve 




More information about the Digitalmars-d-learn mailing list