Skip to content

Instantly share code, notes, and snippets.

@Linell
Created April 27, 2015 20:44
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 Linell/5ebe42acf9fe96f5e5b4 to your computer and use it in GitHub Desktop.
Save Linell/5ebe42acf9fe96f5e5b4 to your computer and use it in GitHub Desktop.
Project Euler problem on in Elixir.
# The fancy anonymous function syntax. I'm kind of not a fan of it in this case.
divisible? = &(rem(&1, 5) == 0 || rem(&1, 3) == 0)
1..999 |> Enum.filter(divisible?) |> Enum.sum
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment