Comparison curried function.
Curried function that takes a Right and a Left value and returns a boolean representing a comparison between them.
Right
Left
boolean
const biggerThan: Comparison<number> = right => left => right > left; Copy
const biggerThan: Comparison<number> = right => left => right > left;
Right-hand side of the comparison.
Predicate with right set in context, which expects a left value to return a boolean representing a comparison between them.
right
left
Left-hand side of the comparison.
Type of the value if Predicate returns true.
Predicate
true
Comparison curried function.
Remarks
Curried function that takes a
Right
and aLeft
value and returns aboolean
representing a comparison between them.Example
See
Param
Right-hand side of the comparison.
Returns
Predicate with
right
set in context, which expects aleft
value to return aboolean
representing a comparison between them.