✨ ARCANUM RUNE DIFFICULTY: Apprentice Creational

The Prototype: Cloning the Memory Space

Duplicate entire vector spaces seamlessly across the VRAM void.

✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Prototype
ARCANUM SCHOOL: Transmutation // Synthesis
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// CODEX INCANTATION //
let clone_array [n] (arr: [n]i32) : *[n]i32 =
  copy arr

let modify_clone [n] (arr: *[n]i32) (i: i64) (v: i32) : *[n]i32 =
  arr with [i] = v
Runic Tags: #futhark #prototype #cloning