# `Algo.Helpers`
[🔗](https://github.com/alexkorban/algo/blob/main/lib/algo/helpers.ex#L1)

Shared internal helpers for Algo modules.

# `module`

```elixir
@spec module(any()) :: {:ok, Map | Keyword} | :error
```

Returns the module that implements map-like operations for an associative value.

Maps return `{:ok, Map}` and keyword lists return `{:ok, Keyword}`. Other
values return `:error`.

## Examples

    iex> Algo.Helpers.module(%{a: 1})
    {:ok, Map}

    iex> Algo.Helpers.module(a: 1)
    {:ok, Keyword}

    iex> Algo.Helpers.module([1, 2, 3])
    :error

---

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