Closed evanrelf closed 1 year ago
Yes, good point! This function (and also mapWithKeys
) is perfectly monotonic, so I should add it. Give me a few minutes.
I’m very curious if you can make good use of RMap
.
Released as 0.2.2. Let me know how it goes!
containers
hasData.Map.map
, which allows changing the type of the values:Is this possible in
rec-def
?For context, I was working on a solution for Advent of Code 2015 day 7 (link to my solution if you're curious). It relies heavily on mutual recursion and laziness.
My current solution is a little crude - I was trying to only use
base
- so I thought usingrec-def
'sRMap
could be nice to polish it up a little bit. But I need to change the phantom type on mySignal
GADT, and I didn't see a way to change the type of values in anRMap
...