tap

inline fun <A, B> Result<A>.tap(f: (A) -> B): Result<A>(source)

Performs an effect over successes but maps the original value back into the Result.