Join Slack
Powered by
Is there any way to call this with +: ``` inline f...
# announcements
n
Nir
07/07/2019, 3:38 PM
Is there any way to call this with +:
Copy code
inline fun <T> T.add(f: T.() -> T) : T { return this.f() }
r
Ruckus
07/07/2019, 3:45 PM
It needs to be an
operator fun
n
Nir
07/07/2019, 3:53 PM
ah right
Nir
07/07/2019, 3:54 PM
hmm, now it says illegal function name
Nir
07/07/2019, 3:55 PM
plus not add
👍 1
Nir
07/07/2019, 4:05 PM
Thanks!
2
Views
Open in Slack
Previous
Next