Package-level declarations

Functions

Link copied to clipboard
fun <T> Raise<NonEmptySet<ConstraintViolation>>.bind(validationResult: ValidationResult<T>): T

Binds the ValidationResult to the Raise computation.

Link copied to clipboard
fun <T> ValidationResult<T>.toEither(): Either<NonEmptySet<ConstraintViolation>, T>

Transforms the ValidationResult to Either.Right of T, or Either.Left of ConstraintViolation list.