Join Slack
Powered by
<@U0GD809DX>: it's possible with inheritance, you ...
# announcements
u
udalov
01/13/2016, 11:11 AM
@jshmrsn
: it's possible with inheritance, you can just inherit from a function type:
Copy code
class Some : (String) -> Unit { override fun invoke(s: String) = println(s) }
Open in Slack
Previous
Next