OperatorSwift

<(_:_:)

Returns a Boolean value indicating whether the value of the first argument is less than that of the second argument.

static func < (lhs: Int, rhs: Int) -> Bool

Parameters

lhs

A value to compare.

rhs

Another value to compare.

Overview

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.