Range.makeRange

Range factory which provides extended wrapper to opCall. It returns empty range when min > max or when it is impossible to respect the specified boundaries.

struct Range(T)
static
makeRange
(
istring boundaries = "[]"
)
(
T min
,
T max
)
out (result) { assert (&result); }

Parameters

boundaries

string which denotes which kind of boundaries will be provided. Square "[" bracket denotes inclusive boundary, round "(" one denotes exclusive boundary

min T

minimum value of range

max T

maximum value of range

Return Value

Type: This

new Range instance

Meta