DEV Community

Discussion on: Learning Rust via the Advent Of Code - Part 1

Collapse
 
brunooliveira profile image
Bruno Oliveira

That's true, I could have done it. I just adapted the choice from the possibilities docs and along the way I learnt about the iter() and collect() :)

Collapse
 
szbergeron profile image
Sawyer Bergeron

Could avoid allocating the temp vec by doing a fold left, even