Witchcraft.Extend.Proto protocol (Witchcraft v1.0.4) View Source

Protocol for the Elixir.Witchcraft.Extend type class

For this type class's API, please refer to Elixir.Witchcraft.Extend

Link to this section Summary

Functions

Wrap some nestable data structure in another layer of itself

Link to this section Types

Link to this section Functions

Specs

Wrap some nestable data structure in another layer of itself

Examples

iex> nest([1, 2, 3])
[[1, 2, 3], [2, 3], [3]]