Skip to content

Instantly share code, notes, and snippets.

Last active Jan 26, 2017
What would you like to do?
compose function from list of functions
import Data.List
compose :: [a -> a] -> a -> a
compose fs v = foldl' (flip (.)) id fs $ v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment