tap()
tap<
E1,A,E2>(self,f):Either<E1|E2,A>
Executes a side effect on the Right value and returns the original Either.
Type Parameters
E1: E1
The original error type.
A: A
The success type.
E2: E2
The side effect error type.
Parameters
self: Either<E1, A>
The Either to tap.
f: (a) => Either<E2, unknown>
The side effect function.
Returns: Either<E1 | E2, A>
The original Either.
Since
2.0.0