Instantly share code, notes, and snippets.

Embed
What would you like to do?
Executando código dinâmico em elixir
Code.eval_quoted(
quote do: unquote(1) + unquote(1 + 1)
)
#code to be parsed 1 + (1 + 1)
#result of execution {3, []}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment