Class Range<T:Value?>
└
Value
└
Object
Represents a range between two values. Range
contains a min
, max
, and flag to determine
inclusive vs. exclusive ranges; the inclusive
flag is understood to refer to the max
endpoint
only, with min
always being included in the Range
.
The exclusive range (..
) and inclusive range (...
) operators in Frost provide a shorthand syntax
for creating Range
and SteppedRange
objects.
- Source Code:
- View Source
Initializer Summary
Field Summary
min :T - The range's starting point.
max :T - The range's ending point.
inclusive :Bit -
true
if the range includes its maximum value.
Inherited Fields:
Initializers
Fields
The range's starting point.
The range's ending point.
true
if the range includes its maximum value.