Join Slack
Powered by
Currently `x` has type `() -> Int`. If you want...
# announcements
n
nhaarman
06/03/2017, 3:20 PM
Currently
x
has type
() -> Int
. If you want
x
to be an
Int
, call
invoke()
on the function:
Copy code
val x = { val y = 1 val z = 2 y + z }.invoke()
2
Views
Open in Slack
Previous
Next