View Source Witchcraft.Category.Proto protocol (Witchcraft v1.0.6-doma)
Protocol for the Elixir.Witchcraft.Category
type class
For this type class's API, please refer to Elixir.Witchcraft.Category
Link to this section Summary
Functions
Take some value and return it again.
Link to this section Types
@type t() :: term()
Link to this section Functions
@spec identity(Witchcraft.Category.t()) :: Witchcraft.Category.t()
Take some value and return it again.
examples
Examples
iex> classic_id = identity(fn -> nil end)
...> classic_id.(42)
42