Odd

open class Odd[N](n: N)(using N: Numeric[N]) extends FromPredicate[N]

checks if an number is odd (non divisible by 2)

checks if an number is odd (non divisible by 2)

class FromPredicate[N]
trait Validation[N]
class Object
trait Matchable
class Any

Type members

Inherited classlikes

final case class Error(raw: Raw)
Inherited from
Validation

Inherited types

override opaque type Valid
Inherited from
FromPredicate0

Value members

Inherited methods

def and[Valid2 <: N](that: Aux[N, Valid2]): Aux[N, Valid & Valid2]
Inherited from
FromPredicate
protected def formatErrorMessage(raw: N): String
Inherited from
FromPredicate0
Inherited from
FromPredicate
def or[Valid2 <: N](that: Aux[N, Valid2]): Aux[N, Valid | Valid2]
Inherited from
FromPredicate
final def validate(raw: N): Error | Valid
Inherited from
Validation
final def validateEither(raw: N): Either[Error, Valid]
Inherited from
Validation
final def validateWith[A](raw: N, handleSuccess: Valid => A, handleError: Error => A): A
Inherited from
FromPredicate0

Inherited fields

val predicate: N => Boolean
Inherited from
FromPredicate0
val predicateName: String
Inherited from
FromPredicate0