Skip to content

Instantly share code, notes, and snippets.

@TheSeamau5
Created April 22, 2015 11:54
Show Gist options
  • Select an option

  • Save TheSeamau5/5abbbd600eac4491845f to your computer and use it in GitHub Desktop.

Select an option

Save TheSeamau5/5abbbd600eac4491845f to your computer and use it in GitHub Desktop.
Pipe operator in Elm
(->>) : a -> List (a -> a) -> a
(->>) x list = case list of
[] -> x
f :: fs -> (->>) (f x) fs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment