Class Reverse<T>

A helper type for reversing order.

Type Parameters

  • out T

Hierarchy

  • Reverse

Constructors

Properties

Methods

Constructors

Properties

val: T

The value of this Reverse.

Methods

  • Compare this and that Reverse to determine their ordering.

    Type Parameters

    • T extends Ord<T>

    Parameters

    Returns Ordering

    Remarks

    When compared, Reverse reverses the comparison of the values. In other words, cmp(new Reverse(lhs), new Reverse(rhs)) is equivalent to cmp(lhs, rhs).reverse().

  • Compare this and that Reverse to determine their equality.

    Type Parameters

    • T extends Eq<T>

    Parameters

    Returns boolean

    Remarks

    Two Reverse are equal if their values are equal.

Generated using TypeDoc