✨ ARCANUM RUNE DIFFICULTY: Adept Behavioral

The Template Method: The Arcane Pipeline

Solidify the algorithm shell while delaying inner computations.

✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Template Method
ARCANUM SCHOOL: Divination // Flow
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// CODEX INCANTATION //
type template = { init: i32 -> i32, process: i32 -> i32, finalize: i32 -> i32 }

let run_template (t: template) (input: i32) : i32 =
  input |> t.init |> t.process |> t.finalize
Runic Tags: #futhark #template #pipelines