I just came across the most unexpected behavior. I\'m sure there is a good reason it works this way. Can someone help explain this?
Consider this code:
See On lambdas, capture, and mutability