extra
extra copied to clipboard
Monadic Endo
Hello! This adds a very simple semigroup/monoid wrapper for functions a -> m a I find myself using often. Hoping someone has a better name than KEndo...
Yeah, I don't love KEndo. Why the K? Why not MEndo (which I still don't love)?
Why the K?
For the resemblance to Kleisli!
I've consulted the more creative; Any particularly strong feelings towards {EndoM, EndoKleisli, KleisliEndo}? EndoM is the most sensible in my opinion, following existing conventions.
(Those more creative people have suggested matching Endo's composition order)