def clamp(value, minimum, maximum):
    """
    Clamp: Clamps the specified 'value' between the maximum and minimum values.
    Returns 'max' when 'value' is greater than 'max', 'min' when 'value' is less than 'min',
    and 'value' itself when neither is true.
    """
    return (min(max(value, minimum), maximum))