Talk:Compose
Jump to navigation
Jump to search
Reading this page got me to write an arrow version of compose. Don't know if it should be included or not since it isn't a monadic solution.
composeArrow :: [a -> a] -> a -> a
Or maybe this:
composeArrow = foldr ((>>>) . arr) (arr id)
composeArrow :: [a -> a] -> a -> a
composeArrow = foldl ((>>>) . arr) returnA