Restrict an Ord to an inclusive interval.
Ord
clamp(val, lo, hi) is equivalent to min(max(val, lo), hi).
clamp(val, lo, hi)
min(max(val, lo), hi)
Generated using TypeDoc
Restrict an
Ord
to an inclusive interval.