arrow-validation / arrow.validation.refinedTypes.numeric / LessEqual

LessEqual

interface LessEqual<F, A : Number> : Refinement<F, A>

LessEqual defines a subset of Numbers which are less or equal than max

Functions

invalidValueMsg open fun invalidValueMsg(a: A): String
lessEqual Commented method or classopen fun A.lessEqual(): Kind<F, A>open fun <B> A.lessEqual(f: (A) -> B): Kind<F, B>
max abstract fun max(): A
ORD abstract fun ORD(): Order<A>
refinement open fun A.refinement(): Boolean

Inheritors

EitherLessEqual interface EitherLessEqual<A : Number> : LessEqual<EitherPartialOf<Nel<RefinedPredicateException>>, A>
ValidatedLessEqual interface ValidatedLessEqual<A : Number> : LessEqual<ValidatedPartialOf<Nel<RefinedPredicateException>>, A>

Do you like Arrow?

Arrow Org
<