Is it possible to have a list of function (referen...
# announcements
j
Is it possible to have a list of function (references) that I can call, like val functions = asList(MyClass::fun1, MyClass::fun2) and then functions.forEach(function -> function...?) ? IDEA gives me strange signature for this list:
Copy code
MutableList<KFunction2<MyClass, @ParameterName(
        name = "fooId"
    ) FooId, Unit>>
where function is
Copy code
private fun fun1(fooId: FooId) {}