ChoiceModule

PackageReified.Refinements
Choice combinators for ordinary fallible conversion functions.

Summary

NameSignatureSynopsis
orElseorElse leftMap left rightMap right fallbackError inputNo description available.
tryAnytryAny fallbackError strategies inputNo description available.

orElse

orElse leftMap left rightMap right fallbackError input
Member

Parameters

NameTypeDescription
leftMap'a -> 'b
left'c -> Result<'a, 'd>
rightMap'e -> 'b
right'c -> Result<'e, 'f>
fallbackError'g
input'c

Returns

Result<'b, 'g>

tryAny

tryAny fallbackError strategies input
Member

Parameters

NameTypeDescription
fallbackError'a
strategies('b -> Result<'c, 'd>) seq
input'b

Returns

Result<'c, 'a>