The Composite of the Ancestral Monad
Treating individual pure forms and compositions uniformly in the Ancestral Monad.
✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Composite
ARCANUM SCHOOL: Transmutation // Ancestral Monad
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// MIRANDA PATTERN //
|| The Composite allows infinite recursion of the Ancestral Monad.
monad_tree ::= Leaf string | Branch [monad_tree]
evaluate_tree :: monad_tree -> string
evaluate_tree (Leaf v) = v
evaluate_tree (Branch xs) = concat (map evaluate_tree xs)
where
concat [] = ""
concat (y:ys) = y ++ " " ++ concat ys
root_tree :: monad_tree
root_tree = Branch [Leaf "Pure", Branch [Leaf "Ancestral", Leaf "Monad"]]
Runic Tags:
#miranda
#structural
#composite
#ancestral-monad