Join Slack
Powered by
Is it possible to use generic type on a high order...
# announcements
i
Ive Vasiljevic
01/09/2020, 12:22 PM
Is it possible to use generic type on a high order function? Like this? I need the type of the "function" to be inferred.
Untitled
d
diesieben07
01/09/2020, 12:23 PM
Copy code
fun <T> someFunction(function: () -> T)
➕ 4
Open in Slack
Previous
Next