Join Slack
Powered by
There's also the case where you have a generic cla...
# getting-started
m
marstran
10/31/2018, 3:49 PM
There's also the case where you have a generic class and want a function to work only when the type parameter is a specific type. Like:
fun List<Int>.sum(): Int
. You can't define this function inside the class.
Open in Slack
Previous
Next