Magma package:lens

This provides a way to peek at the internal structure of a Traversal or IndexedTraversal
This isomorphism can be used to inspect a Traversal to see how it associates the structure and it can also be used to bake the Traversal into a Magma so that you can traverse over it multiple times.
This isomorphism can be used to inspect an IndexedTraversal to see how it associates the structure and it can also be used to bake the IndexedTraversal into a Magma so that you can traverse over it multiple times with access to the original indices.
Run a Magma where all the individual leaves have been converted to the expected type