Packages
doma_algae
1.3.1-doma
Bootstrapped algebraic data types for Elixir, forked by doma for maintenance and testing packagesets
Current section
Files
Jump to
Current section
Files
lib/algae/id/functor.ex
import TypeClass
definst Witchcraft.Functor, for: Algae.Id do
def map(%{id: data}, fun), do: data |> fun.() |> Algae.Id.new()
end