#AdventOfCode #Day4 with #rust
-
#AdventOfCode #Day4 with #rust
I'm no sure I need all the usize/isize casts.
Also, I don't get why I need a move since the value is going to be copied anyway 🤔
I think I still don't understand how the iterations, closures, and ownership interact.
I did learn I can use into_iter to consume a collection :)https://gist.github.com/riffraff/8dc014e9e1138cd517f4f32b06e3c8a8
-
#AdventOfCode #Day4 with #rust
I'm no sure I need all the usize/isize casts.
Also, I don't get why I need a move since the value is going to be copied anyway 🤔
I think I still don't understand how the iterations, closures, and ownership interact.
I did learn I can use into_iter to consume a collection :)https://gist.github.com/riffraff/8dc014e9e1138cd517f4f32b06e3c8a8
@riffraff If it’s any consolation, I’m using AoC to learn Rust and I’m coming up against the same issues!
-
@riffraff If it’s any consolation, I’m using AoC to learn Rust and I’m coming up against the same issues!