Skip to content

Instantly share code, notes, and snippets.

@djleonskennedy
Last active October 4, 2016 21:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save djleonskennedy/d1f8e0d1701faaf72ddea2651cb6c194 to your computer and use it in GitHub Desktop.
Save djleonskennedy/d1f8e0d1701faaf72ddea2651cb6c194 to your computer and use it in GitHub Desktop.
import Html exposing (text)
transform : List Int -> List Int
transform =
List.map ((*) 2)
<< List.filter (flip (%) 2 >> (==) 0)
main =
[1,2,3,4,5,6,7,6,2]
|> text
<< toString
<< List.sum
<< transform
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment