code: public static <T1, R> Func1<T1, R> toFunc(final Action1<T1> action, final R result) {
          return new Func1<T1, R>() {
              @Override
              public R call(T1 t1) {
                  action.call(t1);
                  return result;
              }
          };
      }
docs: Converts an {@link Action1} to a function that calls the action and returns a specified value.
  
  @param action the {@link Action1} to convert
  @param result the value to return from the function call
  @return a {@link Func1} that calls {@code action} and returns {@code result}