ExList v0.1.2 ExList View Source

Link to this section Summary

Functions

Macro enables ExList backend. Have optional 2nd :backend argument

Map of backends for ExList implementations

Link to this section Functions

Link to this macro __using__(opts) View Source (macro)

Macro enables ExList backend. Have optional 2nd :backend argument

Example

iex> use ExList
ExList.Backends.Struct.Utils

iex> use ExList, backend: :struct
ExList.Backends.Struct.Utils

iex> use ExList, backend: :tuple
ExList.Backends.Tuple.Utils

iex> use ExList, backend: :list
ExList.Backends.List.Utils

iex> quote do use ExList, backend: :hello_world end |> Code.eval_quoted
** (RuntimeError) invalid backend opts [backend: :hello_world]

Map of backends for ExList implementations

Example

iex> ExList.backends
%{list: ExList.Backends.List, struct: ExList.Backends.Struct, tuple: ExList.Backends.Tuple}