exfmt v0.0.0 Exfmt.Context

Summary

Functions

Create a new Context

Push a new value onto the stack, signifying another layer in the code

Types

t()
t() :: %Exfmt.Context{opts: Inspect.Opts.t, stack: term}

Functions

new()
new() :: t

Create a new Context.

push_stack(ctx, value)
push_stack(t, term) :: t

Push a new value onto the stack, signifying another layer in the code.

iex> new().stack
[]

iex> ctx = new() |> push_stack(:call)
...> ctx.stack
[:call]

iex> ctx = new() |> push_stack(:call) |> push_stack(:list)
...> ctx.stack
[:list, :call]