Range.isValid

Checks whether the specified range is valid.

struct Range(T)
static
bool
isValid
(
T min
,
T max
)

Parameters

min T

minimum value

max T

maximum value

Return Value

Type: bool

true if the range is valid (min <= max or empty)

Meta