- Remove mut from the closure declaration line. Why does that make the compilation fail?
- Remove move from the closure declaration line. What's the effect and why?
- It looks like we don't need the block starting from line 4 and ending on line 11. Try to remove that and see if that's true.
- Remove both the braces mentioned in the third exercise and use move. What's the effect and why?
With Safari, you learn the way you learn best. Get unlimited access to videos, live online training,
learning paths, books, interactive tutorials, and more.