The Template Method
Higher-order functions defining the skeletal structure of a spell.
✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Template Method
ARCANUM SCHOOL: Necromancy // Skeletons
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// PURE FUNCTIONAL VOID SIGIL //
module TemplateMethod where
template :: (String -> String) -> String -> String
template step1 input = "Start -> " ++ step1 input ++ " -> End"
Runic Tags:
#template
#hof
#behavioral