Join Slack
Powered by
Although it might be better to take a function as ...
# getting-started
k
karelpeeters
04/16/2018, 5:33 PM
Although it might be better to take a function as a parameter:
fun <T> foo(constr: () -> T): T { return constr() }
, call it with
foo(::MyClass)
.
Open in Slack
Previous
Next