Witchcraft v0.3.0 Witchcraft.Functor.Function
Functions that come directly from lift.
Summary
Functions
Not strictly a curried version of lift/2. lift/1 partially applies a function,
to create a “lifted” version of that function.
iex> x10 = &lift(fn x -> x * 10 end).(&1)
iex> [1,2,3] |> x10.()
[10,20,30]
iex> x10 = &lift(fn x -> x * 10 end).(&1)
iex> %Witchcraft.Id{id: 13} |> x10.()
%Witchcraft.Id{id: 130}