Contents

init(uncheckedBounds:)

Creates an instance with the given bounds.

Declaration

init(uncheckedBounds bounds: (lower: Bound, upper: Bound))

Parameters

  • bounds:

    A tuple of the lower and upper bounds of the range.

Discussion

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 half-open range operator (..<) to form Range instances is preferred.

See Also

Infrequently Used Functionality