Last active
January 26, 2017 15:04
-
-
Save clojj/3d48040f161ca092842e5e4cfdab085e to your computer and use it in GitHub Desktop.
compose function from list of functions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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