Skip to content

Instantly share code, notes, and snippets.

@josevalim
Created May 9, 2014 13:25
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 josevalim/ec41ad7d1ff3998605b6 to your computer and use it in GitHub Desktop.
Save josevalim/ec41ad7d1ff3998605b6 to your computer and use it in GitHub Desktop.
defmodule Foo do
@menu [foo: 1, bar: 3, baz: 2]
@filtered_menu @menu |> Enum.filter(...)
def filtered_menu do
@filtered_menu
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment