Could someone help me reason about how to do something I think is pretty basic in FP? I know exactly how I would do it normally (without FP/arrow), but I'm trying to do this task with FP principles in mind.
The idea is that I have a starting data structure that looks like