Join Slack
Powered by
There is no stdlib extension function taking `T.()...
# android
d
damian
04/18/2016, 6:52 PM
There is no stdlib extension function taking
T.() -> Unit
and returning
Unit
, I don't think. You could define one, though.
inline fun <T> T.perform(block: T.() -> Unit) = apply(block).let { Unit }
➕ 3
5
Views
Open in Slack
Previous
Next