Returns a Boolean value indicating whether the sequence contains the given element.
Swift Standard Library
The element to find in the sequence.
true if the element was found in the sequence; otherwise, false.
This example checks to see whether a favorite actor is in an array storing a movie’s cast.
This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.