Skip to content

Instantly share code, notes, and snippets.

@indatawetrust
Created August 2, 2016 15:19
Show Gist options
  • Save indatawetrust/bfa6c1b0c586740ea3854cf010d89d6b to your computer and use it in GitHub Desktop.
Save indatawetrust/bfa6c1b0c586740ea3854cf010d89d6b to your computer and use it in GitHub Desktop.
odd = &(rem(&1,2) != 0)
1..10 |> Enum.filter(odd)
# log
# [1,3,5,7,9]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment