Result::inspect_err
is a nice for 'Do something trivial if Result is Err' situations. The method is not stabilized though (rust-lang/rust#91345).Tap
crate if you prefer method like ergonomics for inspecting or piping.
- Use
indoc
for mock inputs while testing code - TDD is not bad actually
- Part 2 highlighted that parsing of input itself should be configurable, instead of treating second value in a round as a move it should be the outcome of round.