Vibe.IExRunner (vibe v0.1.0)
View SourceExecutes Elixir code within an IEx session and returns the result.
Summary
Functions
Run the given Elixir code string in an IEx session and return the result.
Functions
Run the given Elixir code string in an IEx session and return the result.
Examples
iex> Vibe.IExRunner.run("1 + 1")
{:ok, "2"}
iex> Vibe.IExRunner.run("Enum.map(1..3, &(&1 * 2))")
{:ok, "[2, 4, 6]"}
iex> Vibe.IExRunner.run("1 / 0")
{:error, "** (ArithmeticError) bad argument in arithmetic expression..."}