1. 1.1.3

    ...(_:_:)

    Returns a closed range that contains both of its bounds.

    static func ... (minimum: Self, maximum: Self) -> ClosedRange<Self>

    Parameters

    minimum

    The lower bound for the range.

    maximum

    The upper bound for the range.

    Overview

    Use the closed range operator (...) to create a closed range of any type that conforms to the Comparable protocol. This example creates a ClosedRange<Character> from ā€œaā€ up to, and including, ā€œzā€.

    let lowercase = "a"..."z"
    print(lowercase.contains("z"))
    // Prints "true"