Skip to content

IOrdered

Defined in: ordered.ts:10

A totally ordered set — every pair of elements is comparable, and the order is antisymmetric, transitive and total.

T extends IOrdered<T>

The carrier set.

clamp(lower, upper): T

Defined in: ordered.ts:27

Restricts the value to [lower, upper].

T

T

T


cmp(other): Sign

Defined in: ordered.ts:12

Three-way comparison consistent with the total order.

T

Sign


eq(other): boolean

Defined in: ordered.ts:14

T

boolean


gt(other): boolean

Defined in: ordered.ts:17

T

boolean


gte(other): boolean

Defined in: ordered.ts:18

T

boolean


lt(other): boolean

Defined in: ordered.ts:15

T

boolean


lte(other): boolean

Defined in: ordered.ts:16

T

boolean


max(other): T

Defined in: ordered.ts:24

The larger of the two operands under the total order.

T

T


min(other): T

Defined in: ordered.ts:21

The smaller of the two operands under the total order.

T

T