Common data transform patterns - please add yours!

Which is why in Haskell the fmap function is tied to the type or more accurately typeclass - so neither Range nor MapSet would be a member of the Functor typeclass.

The original complaint was that there should be a Map.map/2 that produces a Map (while Enum.map_to_list can do whatever it needs to do).

1 Like