MinMax Module
Creates, validates, combines and formats a range with an optional minimum and an optional maximum, each inclusive or exclusive.
Nested modules
| Modules | Description |
|
Checks with given comparison functions whether a minimum lies above a maximum, and formats a minimum and a maximum in symbols or in Dutch. |
|
|
Holds the Dto of a range and converts a range to and from the Dto. Returns None for a Dto with an invalid ValueUnit or an invalid range. |
|
|
Holds the getters and setters for the minimum and the maximum of a range. A setter returns the range unchanged when the result is invalid. |
Functions and values
| Function or value |
Description
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Folds a list of ranges into one range, starting from the empty range. A minimum replaces the current minimum when minCond holds, a maximum the current maximum when maxCond holds. A missing limit leaves the current limit unchanged.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Formats a range. A range with one limit starts with minInclStr, minExclStr, maxInclStr or maxExclStr. A range with two limits shows as min - max, and two equal inclusive limits as one value. An empty range gives an empty string.
|
|
|
|
Full Usage:
toValueTuple mm
Parameters:
MinMax
Returns: BigRational option * BigRational option
|
|
|
Type extensions
| Type extension |
Description
|
GenPRES