Dextrin.Array (Dextrin v0.1.0)

Copy Markdown View Source

DXN array (@array[ ... ]) — fixed-size, indexed. Wraps an Elixir tuple, the one DXN collection type where Elixir's own fixed-arity tuple is actually the right fit — unlike Dextrin.Tuple, which backs DXN's arbitrary-length tuple with a list instead.

Summary

Types

t()

@type t() :: %Dextrin.Array{items: tuple()}

Functions

new(items)

@spec new([term()] | tuple()) :: t()

to_list(array)

@spec to_list(t()) :: [term()]