Advent of Rust Day 2

In Day 2 we need to do &ldquo;things&rdquo; to the consecutive pairs in a list of ints. The Rust standard library was created by thorough, right-thinking people, so getting consecutive pairs from a Vec is pretty easy: nums.windows(2).map(|w|(w[0],w[1]))But I&rsquo;m not a barbarian. If I need to do three or four things to this list of pairs, I&rsquo;m not going to reify that transformation into a…