Join Slack
Powered by
Capturing means something like ```val x = 3 run { ...
# announcements
k
karelpeeters
05/27/2018, 8:58 PM
Capturing means something like
Copy code
val x = 3 run { println(x) }
The lambda has to use a variable from the scope arround it, so it keeps a reference to it, ie. it captures it.
Open in Slack
Previous
Next