ResultME is a variation on Result, where the err is a non-empty list of
errors. This is useful in situations where multiple errors can be detected in a
single pass, and it is preferable to report all errors detected, and not to fail
only on the first error.
Some examples; when parsing a form with multiple inputs and possibly multiple errors to report to the user; when parsing some source code which may contain multiple syntax errors.
Produces a ResultME from a single error.
Produces a ResultME from a list of errors.
Turns a Result into ResultME with one error.
Applies a function to the result value in a ResultME, if there is one.
Combines 2 ResultMEs together. If any of them have errors all the errors
will be gathered. Otherwise the supplied function will be used to combine the
result values as Ok.
Combines 3 ResultMEs together. If any of them have errors all the errors
will be gathered. Otherwise the supplied function will be used to combine the
result values as Ok.
Combines 4 ResultMEs together. If any of them have errors all the errors
will be gathered. Otherwise the supplied function will be used to combine the
result values as Ok.
Combines 6 ResultMEs together. If any of them have errors all the errors
will be gathered. Otherwise the supplied function will be used to combine the
result values as Ok.
Combines 2 ResultMEs together. If any of them have errors all the errors
will be gathered. Otherwise the function supplied in the second one will be
applied to the first, to produce the result value as Ok.
Applies a function to the error in a ResultME, if there is one.
Combines all errors in a List of ResultMEs. All errors will
be gathered in the case where there are any errors, otherwise a List
of the result values will be returned as Ok.
Combines all errors in a Dict of ResultMEs. All errors will
be gathered in the case where there are any errors, otherwise a Dict
of the result values will be returned as Ok.
Combines all errors in a Nonempty list of ResultMEs. All errors will
be gathered in the case where there are any errors, otherwise a Nonempty list
of the result values will be returned as Ok.
Chain together a sequence of computations that may fail. This is identical
to Result.andThen.
Flattens the structure if one ResultME is nested inside another.
The result-possible-with-multiple-errors type.