Oi.Result (oi v0.6.1)

Copy Markdown

Execution result: the final drafting memory.

memory is keyed by Orchid io_key, values are Orchid.Param.t().

Summary

Types

t()

@type t() :: %Oi.Result{memory: %{required(Orchid.Step.io_key()) => Orchid.Param.t()}}

Functions

fetch(result, key)

@spec fetch(t(), Orchid.Step.io_key()) ::
  {:ok, Orchid.Param.t()} | {:error, :not_found}

new(memory)

@spec new(%{required(Orchid.Step.io_key()) => Orchid.Param.t()}) :: t()

reify(res, key)

@spec reify(t(), Orchid.Step.io_key()) :: {:ok, term()} | {:error, :not_found}