Join Slack
Powered by
Hi all, am I correct in saying that there is curre...
# announcements
s
salomonbrys
03/24/2016, 2:25 PM
Hi all, am I correct in saying that there is currently no way to take a generic function parameter? Ex:
fun test(f: <T: Any>(T, Int) -> T)
. In this example, it would ensure that the parameter
f
is a function that returns the same type as the object it was given as first parameter.
2
Views
Open in Slack
Previous
Next