✨ ARCANUM RUNE DIFFICULTY: Adept Creational

The Builder

A step-by-step assembly incantation for constructing complex array constructs.

✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Builder
ARCANUM SCHOOL: Conjuration // Array Synthesis
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// CODEX INCANTATION //
coclass 'GolemBuilder'
create =: 3 : 'parts =: 0 0$0'
addHead =: 3 : 'parts =: parts , <''Head'''
addBody =: 3 : 'parts =: parts , <''Body'''
addLimbs =: 3 : 'parts =: parts , <''Limbs'''
build =: 3 : 'parts'

cocurrent 'base'
constructGolem =: 3 : 0
  b =. conew 'GolemBuilder'
  addHead__b ''
  addBody__b ''
  addLimbs__b ''
  build__b ''
)

Constructs complex data structures by accumulating parts in an object’s state space.

Runic Tags: #builder #assembly #golem #state