Returns a Boolean value indicating whether the value of the first argument is less than that of the second argument.
SDK
- Xcode 9.0+
Framework
- Swift Standard Library
Declaration
static func < <RHS>(lhs: String, rhs: RHS) -> Bool where RHS : StringProtocol
Parameters
lhsA value to compare.
rhsAnother value to compare.
Discussion
This function is the only requirement of the Comparable protocol. The remainder of the relational operator functions are implemented by the standard library for any type that conforms to Comparable.
Note
This documentation comment was inherited from Comparable.