Skip to content

Instantly share code, notes, and snippets.

@toraritte
Last active July 7, 2017 12:20
Show Gist options
  • Save toraritte/36f67733b60fd793c2015e1c3f98021d to your computer and use it in GitHub Desktop.
Save toraritte/36f67733b60fd793c2015e1c3f98021d to your computer and use it in GitHub Desktop.
elixir_sundry.ex
defmodule A do
def vmi, do: IO.puts(27)
def balabab, do: IO.puts(7)
def lofa do
f = [&vmi/0, &balabab/0]
Enum.each(f, &(&1.()))
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment