View Source Witchcraft.Apply.Proto protocol (Witchcraft v1.0.6-doma)
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
@type t() :: term()
Link to this section Functions
@spec 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
Examples
iex> [1, 2, 3]
...> |> convey([fn x -> x + 1 end, fn y -> y * 10 end])
[2, 10, 3, 20, 4, 30]