Created
April 21, 2017 02:21
-
-
Save nahive/986d6cc9eb0664015b72dcf892b15210 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// Returns a Boolean value indicating whether the given element is contained | |
/// within the range. | |
/// | |
/// A `ClosedRange` instance contains both its lower and upper bound. | |
/// `element` is contained in the range if it is between the two bounds or | |
/// equal to either bound. | |
/// | |
/// - Parameter element: The element to check for containment. | |
/// - Returns: `true` if `element` is contained in the range; otherwise, | |
/// `false`. | |
public func contains(_ element: Bound) -> Bool |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment