Function or value | Description |
|
|
|
|
Full Usage:
appValidation combine e1' e2'
Parameters:
'err -> 'err -> 'err
e1' : Validation<'err, 'a>
e2' : Validation<'err, 'a>
Returns: Validation<'err, 'a>
|
|
Full Usage:
apply f x
Parameters:
Validation<^Error, ('T -> 'U)>
x : Validation<^Error, 'T>
Returns: Validation<^Error, 'U>
Modifiers: inline Type parameters: ^Error, 'T, 'U |
Applies the wrapped value to the wrapped function when both are Success and returns a wrapped result or the Failure(s).
The function wrapped in a Success or a Failure.
The value wrapped in a Success or a Failure.
|
Full Usage:
bifoldBack f g source state
Parameters:
'Error -> 'State -> 'State
g : 'T -> 'State -> 'State
source : Validation<'Error, 'T>
state : 'State
Returns: 'State
|
|
Full Usage:
bimap failureMapper successMapper source
Parameters:
'TError -> 'UError
-
Function to be applied to source, if it contains a Failure value.
successMapper : 'T -> 'U
-
Function to be applied to source, if it contains a Success value.
source : Validation<'TError, 'T>
-
The source value, containing a Success or a Failure.
Returns: Validation<'UError, 'U>
The result of applying the corresponding mapping function.
|
|
Full Usage:
bind f x
Parameters:
'T -> Validation<'Error, 'U>
x : Validation<'Error, 'T>
Returns: Validation<'Error, 'U>
|
Binds through a Validation, which is useful for composing Validations sequentially. Note that despite having a bind function of the correct type, Validation is not a monad. The reason is, this bind does not accumulate errors, so it does not agree with the Applicative instance. There is nothing wrong with using this function, it just does not make a valid Monad instance.
|
Full Usage:
bisequence source
Parameters:
Validation<^Functor<'Error>, ^Functor<'T>>
Returns: ^Functor
Modifiers: inline |
|
Full Usage:
bitraverse f g source
Parameters:
'TError -> ^Functor<'UError>
g : 'T -> ^Functor<'U>
source : Validation<'TError, 'T>
Returns: ^Functor
Modifiers: inline Type parameters: 'TError, ^Functor<'UError>, ^Functor<Validation<'UError, 'U>>, ^Functor<'U>, 'T2, 'Error2, 'T |
|
Full Usage:
defaultValue value source
Parameters:
'T
source : Validation<'Error, 'T>
Returns: 'T
|
|
Full Usage:
defaultWith compensation source
Parameters:
'Error -> 'T
source : Validation<'Error, 'T>
Returns: 'T
|
|
Full Usage:
either failureMapper successMapper source
Parameters:
'TError -> 'U
-
Function to be applied to source, if it contains a Failure value.
successMapper : 'T -> 'U
-
Function to be applied to source, if it contains a Success value.
source : Validation<'TError, 'T>
-
The source value, containing a Success or a Failure.
Returns: 'U
The result of applying either functions.
|
|
Full Usage:
foldBack folder source state
Parameters:
'T -> 'State -> 'State
source : Validation<'Error, 'T>
state : 'State
Returns: 'State
Modifiers: inline Type parameters: 'T, 'State, 'Error |
|
Full Usage:
isoValidationResult x
Parameters:
^a
Returns: ^b
Modifiers: inline |
|
Full Usage:
liftChoice f
Parameters:
'b -> 'Semigroup
Returns: Choice<'b, 'T> -> Validation<'Semigroup, 'T>
|
|
Full Usage:
liftResult f _arg1
Parameters:
'Error -> 'Semigroup
_arg1 : Result<'T, 'Error>
Returns: Validation<'Semigroup, 'T>
|
|
Full Usage:
map f source
Parameters:
'T -> 'U
source : Validation<'Error, 'T>
Returns: Validation<'Error, 'U>
|
|
Full Usage:
map2 f x y
Parameters:
'T -> 'U -> 'V
x : Validation<^Error, 'T>
y : Validation<^Error, 'U>
Returns: Validation<^Error, 'V>
Modifiers: inline Type parameters: 'T, 'U, 'V, ^Error |
|
Full Usage:
map3 f x y z
Parameters:
'T -> 'U -> 'V -> 'W
x : Validation<^Error, 'T>
y : Validation<^Error, 'U>
z : Validation<^Error, 'V>
Returns: Validation<^Error, 'W>
Modifiers: inline Type parameters: 'T, 'U, 'V, 'W, ^Error |
|
|
|
Full Usage:
ofOptionWith errorValue source
Parameters:
'Error
-
The error value to be used in case of None.
source : 'T option
-
The option value.
Returns: Validation<'Error, 'T>
The resulting Validation value.
|
|
|
|
Full Usage:
ofValueOptionWith errorValue source
Parameters:
'Error
-
The error value to be used in case of None.
source : 'T voption
-
The voption value.
Returns: Validation<'Error, 'T>
The resulting Validation value.
|
|
Full Usage:
partition source
Parameters:
Validation<'TErrors, 'T> list
Returns: 'T list * 'TErrors list
A tuple with both resulting lists, Success are in the first list.
|
|
Full Usage:
protect unsafeFunction x
Parameters:
'T -> 'U
x : 'T
Returns: Validation<exn, 'U>
|
|
Full Usage:
sequence source
Parameters:
Validation<'Error, ^Functor<'T>>
Returns: ^Functor
Modifiers: inline |
|
|
|
|
|
Full Usage:
traverse f source
Parameters:
'T -> ^Functor<'U>
source : Validation<'Error, 'T>
Returns: ^Functor
Modifiers: inline Type parameters: 'T, ^Functor<'U>, ^Functor<Validation<'Error, 'U>>, 'U, 'Error |
|
Full Usage:
validationNel x
Parameters:
Result<'T, 'TError>
Returns: Validation<NonEmptyList<'TError>, 'T>
|
|
Full Usage:
zip x y
Parameters:
Validation<^Error, 'T>
y : Validation<^Error, 'U>
Returns: Validation<^Error, ('T * 'U)>
Modifiers: inline Type parameters: ^Error, 'T, 'U |
|