Callback Bindings
Problem
You want to bind a callback function to an object.
Solution
Discussion
By using the fat arrow (=>
) instead of the normal arrow (->
) the function gets
automatically bound to the object and can access the @-variable
.