Advent of Code 2020 day 12

Day 12 [https://adventofcode.com/2020/day/12] was fairly straighforward: apply a bunch of rules to update a state. The two parts are so similar, I'll treat them together here. I started with some data definitions, for Directions, the Actions and