Add method, that constructs Try<T> based on the result of functor.