How can I create an array or List of functions in Java 17 (or similar)?
Expected hypothetical usage:
var myListOfFunctions = List.of(this::myFunction, MyClass::someOtherFunction);
I get the following error:
Object is not a functional interface
I intend to stream the functions and pass them the same data.