FsFlow.ValidationModule.collect

Collects a sequence of validations into a single validation of a list.

Remarks

This operation is applicative: it will collect errors from ALL items in the sequence.

Parameters

  • validations: A sequence of type seq<Validation<'value, 'error>>.

Returns

A validation containing the list of values or accumulated diagnostics.