contains(_:)
Returns a Boolean value indicating whether the collection contains the given sequence.
Declaration
func contains<C>(_ other: C) -> Bool where C : Collection, Self.Element == C.ElementParameters
- other:
A sequence to search for within this collection.
Return Value
true if the collection contains the specified sequence, otherwise false.