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/tree/rose/foldable.ex
alias Algae.Tree.Rose
alias Witchcraft.Foldable
import TypeClass
definst Witchcraft.Foldable, for: Algae.Tree.Rose do
def right_fold(%Rose{rose: rose, forest: forest}, acc, fun) do
fun.(rose, Foldable.right_fold(forest, acc, fun))
end
end