@dibblego Any adv to "appEndo.foldMap Endo" vs. "flip . foldr $ ($)"?
@davetchepak I think the former is a lot neater. You might also want to look at Control.Newtype for the wrap/unwrap.
-
-
@dibblego Gets messier to reverse composition order (foldl v Dual & Endo), but monoid 1 captures intent nicely. Will checkout Newtype, thx. -
@davetchepak You might use Control.Category.(>>>) which is a generalised flip (.).
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.