Skip to content

Instantly share code, notes, and snippets.

@jroesch
Created August 26, 2012 00:53
Show Gist options
  • Save jroesch/3472862 to your computer and use it in GitHub Desktop.
Save jroesch/3472862 to your computer and use it in GitHub Desktop.
sumDouble = sum . map (*2)
sumDouble = foldl (+) 0 . map (*2) -- without sum
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment