Created
December 28, 2011 01:21
-
-
Save mike-burns/1525703 to your computer and use it in GitHub Desktop.
pipe a value through filters
This file contains hidden or 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
pipe :: [ a -> a ] -> a -> a | |
pipe [] xs = xs | |
pipe (f:fs) xs = pipe fs $ f xs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is
foldr (.) id
.