Type alias Comparison<Right, Left, Predicated>

Comparison<Right, Left, Predicated>: Unary<Right, Predicate<Left, Predicated>>

Comparison curried function.

Remarks

Curried function that takes a Right and a Left value and returns a boolean representing a comparison between them.

Example

const biggerThan: Comparison<number> = right => left => right > left;

See

Param

Right-hand side of the comparison.

Returns

Predicate with right set in context, which expects a left value to return a boolean representing a comparison between them.

Type Parameters

  • Right = unknown

    Right-hand side of the comparison.

  • Left extends Right = Right

    Left-hand side of the comparison.

  • Predicated extends Left = Left

    Type of the value if Predicate returns true.