The Memento of the Ancestral Monad
Capturing and restoring the pure state of an entity within the Ancestral Monad.
✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Memento
ARCANUM SCHOOL: Enchantment // Ancestral Monad
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// MIRANDA PATTERN //
|| Memento stores state historically via pure values.
state == num
memento == state
create_memento :: state -> memento
create_memento s = s
restore_memento :: memento -> state
restore_memento m = m
modify_state :: state -> state
modify_state s = s * 2
history :: [memento]
history = [create_memento 10, create_memento 20]
Runic Tags:
#miranda
#behavioral
#memento
#ancestral-monad