Less

public protocol Less[Other = Self]

Raw protocol backing the < operator.

Comparable derives Less, LessOrEqual, Greater, GreaterOrEqual from a single compare() method, so prefer conforming to Comparable for totally-ordered types.

Associated Types

type Output

Methods

func lessThan(Other) -> Output

Returns the less-than result as Output — typically Bool.

Defined in lang/std/core/comparison.ks