Package: alexandria

Function clamp

Lambda List

clamp (number min max)

Details

Clamps the number into [min, max] range. Returns min if number is lesser then min and max if number is greater then max, otherwise returns number.