Are there constructor references in Kotlin?
Solution 1:
You can get a function instance for a constructor by simply using ::ClassName
, as if it were a factory function.
You can get a function instance for a constructor by simply using ::ClassName
, as if it were a factory function.