Skip to content

Instantly share code, notes, and snippets.

@agnaldo4j
Last active January 7, 2016 01:01
Show Gist options
  • Save agnaldo4j/39ab6d7df4ba18a893e1 to your computer and use it in GitHub Desktop.
Save agnaldo4j/39ab6d7df4ba18a893e1 to your computer and use it in GitHub Desktop.
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