Packages
doma_algae
1.3.2-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/state/chain.ex
alias Algae.State
import TypeClass
definst Witchcraft.Chain, for: Algae.State do
@force_type_instance true
def chain(state, link) do
State.state(fn s ->
{x, z} = State.run(state, s)
State.run(link.(x), z)
end)
end
end