View Source Witchcraft.Extend.Proto protocol (Witchcraft v1.0.6-doma)
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
@type t() :: term()
Link to this section Functions
@spec nest(Witchcraft.Extend.t()) :: Witchcraft.Extend.t()
Wrap some nestable data structure in another layer of itself
examples
Examples
iex> nest([1, 2, 3])
[[1, 2, 3], [2, 3], [3]]