The Adapter of the Ancestral Monad
Aligning foreign pure functions to the expected interface of the Ancestral Monad.
✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Adapter
ARCANUM SCHOOL: Transmutation // Ancestral Monad
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// MIRANDA PATTERN //
|| The Adapter translates older chaotic invocations into pure monadic forms.
target_interface == num -> string
adaptee_function :: string -> num -> string
adaptee_function prefix n = prefix ++ ": " ++ show (n * 2)
adapter :: target_interface
adapter n = adaptee_function "Adapted Monad" n
client_invocation :: target_interface -> num -> string
client_invocation f x = f x
Runic Tags:
#miranda
#structural
#adapter
#ancestral-monad