16:27 ok but does it need to be mutable? why is it being mutated?
@iaphlnt27 күн бұрын
by_ref takes a mutable iterator
@jesusmtz297 ай бұрын
Not going to lie this is daunting lol as i follow along i feel i know this stuff but as soon as i try to guess ahead what i should do i get a bunch of errors. what a mental gym rust is
@ihgnmah Жыл бұрын
17:10 isn't .next() enough since it gives you the next one item?
@TrevorSullivan Жыл бұрын
You mean calling .skip(1).next() instead of .skip(1).take(1).next()? It's possible, I'd have to try it again 🙂
@ihgnmah Жыл бұрын
@@TrevorSullivan yeah, also, I think .take() will create a new Iterator, which can incur some performance hits.
@TrevorSullivan Жыл бұрын
@@ihgnmah thanks for pointing that out!
@nofeah89 Жыл бұрын
Should I learn rust despite all that's happening out there?
@TrevorSullivan Жыл бұрын
In my opinion, yes. All communities suffer from division and restructuring at some point. Just don't become part of it, and focus on building good software. That's my advice.
@nofeah89 Жыл бұрын
@@TrevorSullivan Thanks for replying. I just started learning rust for hobby projects.