λ HASKELL SIGILS DIFFICULTY: Adept Behavioral

The Strategy

First-class functions passed as combat tactics.

✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Strategy
ARCANUM SCHOOL: Evocation // Tactics
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// PURE FUNCTIONAL VOID SIGIL //
module Strategy where
type Strategy = Int -> Int -> Int
addStrategy :: Strategy
addStrategy = (+)
execute :: Strategy -> Int -> Int -> Int
execute s a b = s a b
Runic Tags: #strategy #functions #behavioral