Contents

contains(_:)

Returns a Boolean value indicating whether the given element is contained within the range expression.

Declaration

func contains(_ element: Self.Bound) -> Bool

Parameters

  • element:

    The element to check for containment.

Return Value

true if element is contained in the range expression; otherwise, false.