Initializerswift 6.0.1Swift
init(uncheckedBounds:)
Creates an instance with the given bounds.
init(uncheckedBounds bounds: (lower: Bound, upper: Bound))
Parameters
- bounds
A tuple of the lower and upper bounds of the range.
Because this initializer does not perform any checks, it should be used as an optimization only when you are absolutely certain that lower
is less than or equal to upper
. Using the closed range operator (...
) to form ClosedRange
instances is preferred.
Other members in extension
Instance members
let lowerBound: Bound
The range’s lower bound.
let upperBound: Bound
The range’s upper bound.