public static <E> OptionalFunction<Selection<Method>, E> invoke(Object... args) {
    return OptionalFunction.of(selection -> factory.createInvoker(selection.result()).on(selection.target()).withArgs(args));
  }
public static < E > OptionalFunction < Selection < Method > , E > invoke ( Object ... args ) { return OptionalFunction . of ( selection -> factory . createInvoker ( selection . result ( ) ) . on ( selection . target ( ) ) . withArgs ( args ) ) ; }
Returns a function that invokes a selected method.

@param args the arguments for invoking the method
@return a function that invokes a selected method