# `Yex.ArrayPrelim`
[🔗](https://github.com/satoren/y_ex/blob/main/lib/shared_type/array.ex#L437)

A preliminary array. It can be used to early initialize the contents of a Array.

## Examples
    iex> doc = Yex.Doc.new()
    iex> map = Yex.Doc.get_map(doc, "map")
    iex> Yex.Map.set(map, "key", Yex.ArrayPrelim.from(["Hello", "World"]))
    iex> {:ok, %Yex.Array{} = array} = Yex.Map.fetch(map, "key")
    iex> Yex.Array.fetch(array, 1)
    {:ok, "World"}

# `t`

```elixir
@type t() :: %Yex.ArrayPrelim{list: [Yex.input_type()]}
```

# `from`

```elixir
@spec from(Enumerable.t(Yex.input_type())) :: t()
```

---

*Consult [api-reference.md](api-reference.md) for complete listing*
