Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR ELIXIR

elixir eval ast

ast = quote do: IO.puts 1 + 10 * 2
Code.eval_quoted(ast)
// 21
// {:ok, []}
 
PREVIOUS NEXT
Tagged: #elixir #eval #ast
ADD COMMENT
Topic
Name
4+3 =