Last active
July 7, 2017 12:20
-
-
Save toraritte/36f67733b60fd793c2015e1c3f98021d to your computer and use it in GitHub Desktop.
elixir_sundry.ex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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