Let’s keep the momentum going from our lesson on ownership! We spent a lot of time playing around with ownership and moving, and we found it really annoying (or, at least, I did) that we had to keep moving values into functions and then back out. It would be nice to have a better solution for it. With that kind of introduction, you better believe that’s what we’re about to learn.

Here’s another look at some of that move-in-move-out code we had before:

Get hands-on with 1000+ tech skills courses.