www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - intrinsic min and max for ints

reply Dominic Jones <dominic.jones qmul.ac.uk> writes:
Hello,

Is there a library function for min/max for integers. I would rather not use
the ?-operator, it's rather clumsy. I looked in the standard lib and only
found f(min|max).

Thank you,
Dominic Jones
Feb 16 2011
parent Mafi <mafi example.org> writes:
Am 16.02.2011 10:54, schrieb Dominic Jones:
 Hello,

 Is there a library function for min/max for integers. I would rather not use
 the ?-operator, it's rather clumsy. I looked in the standard lib and only
 found f(min|max).

 Thank you,
 Dominic Jones

defined so also for ints. Mafi
Feb 16 2011