Join Slack
Powered by
closest you’re gonna get is probably a lambda ``` ...
# announcements
s
Shawn
12/13/2017, 7:20 AM
closest you’re gonna get is probably a lambda
Copy code
val toast = { x: Int -> activity.toast(x) }
e
edwardwongtl
12/13/2017, 7:23 AM
Then it is just the same as
fun toast(x: Int) = activity.toast(x)
, no big different for me
2
Views
Open in Slack
Previous
Next