Open sjakobi opened 4 years ago
I actually ended up simply using foldlM
on the toList
pairs, to get rid of the somewhat obscure definition above.
I didn't compare the performance though.
I'm not opposed, but you should propose it on the libraries list. If we do the left folds, we should do the right folds too. You should remove the redundant Ord
constraint.
I'm unlikely to make a proposal, as foldlM
on the toList
pairs seems good enough for me.
If a proper definition in containers
turns out to offer better performance, I would certainly support a proposal though!
I just needed the following function, which turned out a bit trickier than I had expected:
Maybe it should be included in
containers
?