Inspect<T, E> extension

Run closures on contained value or error

on

Methods

inspect(void f(T value)) Result<T, E>
Calls the provided closure with the contained value (if ok)
inspectErr(void f(E error)) Result<T, E>
Calls the provided closure with the contained error (if err).