Witchcraft v1.0.0 Witchcraft.Apply.Proto protocol 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
Link to this section Functions
Link to this function
convey(wrapped_args, wrapped_funs)
View Source
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]