Last active
July 9, 2019 23:30
-
-
Save polvalente/83bfc62db03e960c986e6b6b86c27e0e to your computer and use it in GitHub Desktop.
Emojis are happy
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 X do | |
@moduledoc """ | |
iex> X.a | |
"happy_emoji" | |
""" | |
Enum.each( | |
[:"😀"], | |
fn (name) -> | |
def unquote(name)(), do: "happy_emoji" | |
end) | |
def a, do: X."😀" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment