✨ ARCANUM RUNE DIFFICULTY: Apprentice Behavioral

The Memento: Temporal Checkpoints

Halt and save the dimensional shift records of a loop.

✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Memento
ARCANUM SCHOOL: Divination // Flow
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// CODEX INCANTATION //
type memento = { step: i32, energy: i32 }

let save_state (s: i32) (e: i32) = { step = s, energy = e }

let restore_state (m: memento) = (m.step, m.energy)
Runic Tags: #futhark #memento #state