closest you’re gonna get is probably a lambda ``` ...
# announcements
s
closest you’re gonna get is probably a lambda
Copy code
val toast = { x: Int -> activity.toast(x) }
e
Then it is just the same as
fun toast(x: Int) = activity.toast(x)
, no big different for me