Skip to content

Instantly share code, notes, and snippets.

@polvalente
Last active July 9, 2019 23:30
Show Gist options
  • Save polvalente/83bfc62db03e960c986e6b6b86c27e0e to your computer and use it in GitHub Desktop.
Save polvalente/83bfc62db03e960c986e6b6b86c27e0e to your computer and use it in GitHub Desktop.
Emojis are happy
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