Skip to content

Instantly share code, notes, and snippets.

@bruce
Created September 4, 2013 05:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save bruce/6433003 to your computer and use it in GitHub Desktop.
Save bruce/6433003 to your computer and use it in GitHub Desktop.
Getting all items that match a pattern. A better way?
oks = Enum.filter items, fn (i) ->
case i do
{:ok, _} -> true
_ -> false
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment