✨ ARCANUM RUNE DIFFICULTY: Apprentice Behavioral

The Iterator: Traversal via Reduction

Collapse matrices across iterative reductions.

✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Iterator
ARCANUM SCHOOL: Divination // Flow
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// CODEX INCANTATION //
let iterate_flux [n] (flux: [n]i32) : i32 =
  reduce (+) 0 (map (\x -> x * x) flux)
Runic Tags: #futhark #iterator #reduce