The Prototype
Cloning arcane constructs effortlessly via pure functional immutability.
✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Prototype
ARCANUM SCHOOL: Illusion // Chronomancy
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// PURE FUNCTIONAL VOID SIGIL //
module Prototype where
data Simulacrum = Simulacrum { health :: Int, name :: String }
base = Simulacrum 100 "Base"
clone proto newName = proto { name = newName }
Runic Tags:
#immutability
#records
#chronomancy