Skip to content

chain

chain<E, A, B>(f): (data) => TaskValidation<E, B>

Defined in: Core/TaskValidation.ts:81

Chains TaskValidation computations. If the first is Valid, passes the value to f. If the first is Invalid, propagates the errors.

Note: chain short-circuits on first error. Use ap to accumulate errors.

E

A

B

(a) => TaskValidation<E, B>

(data): TaskValidation<E, B>

TaskValidation<E, A>

TaskValidation<E, B>