Witchcraft.Apply.Proto protocol (Witchcraft v1.0.4) View Source
Protocol for the Elixir.Witchcraft.Apply
type class
For this type class's API, please refer to Elixir.Witchcraft.Apply
Link to this section Summary
Functions
Pipe arguments to functions, when both are wrapped in the same type of data structure.
Link to this section Types
Specs
t() :: term()
Link to this section Functions
Specs
convey(Witchcraft.Apply.t(), Witchcraft.Apply.fun()) :: Witchcraft.Apply.t()
Pipe arguments to functions, when both are wrapped in the same type of data structure.
Examples
iex> [1, 2, 3]
...> |> convey([fn x -> x + 1 end, fn y -> y * 10 end])
[2, 10, 3, 20, 4, 30]