Adding `reverse` and `sortBy` to `Traversable`
Keith <[email protected]> Mon, 27 Oct 2025 20:29:42 +0000
| Newsgroups | gmane.comp.lang.haskell.cafe |
|---|---|
| Message-ID | <[email protected]> |
Folks[1] have known for a long time that `reverse` and `sortBy` can both be implemented in terms of `mapAccumL`. Would it make sense to add those to `Data.Traversable` as functions or methods? [1] For example, Will Fancher wrote about it in 2017. --- Sent from my phone with K-9 Mail. _______________________________________________ Haskell-Cafe mailing list -- [email protected] To (un)subscribe, modify options or view archives go to: Only members subscribed via the mailman list are allowed to post.