View Source Yex.MapPrelim (y_ex v0.7.1)

A preliminary map. It can be used to early initialize the contents of a Map.

Examples

iex> doc = Yex.Doc.new()
iex> array = Yex.Doc.get_array(doc, "array")
iex> Yex.Array.insert(array, 0, Yex.MapPrelim.from(%{ "key" => "value" }))
iex> {:ok, %Yex.Map{} = map} = Yex.Array.fetch(array, 0)
iex> Yex.Map.fetch(map, "key")
{:ok, "value"}

Summary

Types

t()

@type t() :: %Yex.MapPrelim{map: map()}

Functions

from(map)