The Iterator of the Hive Switchboard
Traversing infinite ethereal streams.
✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Iterator
ARCANUM SCHOOL: Divination // Flow
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// ERLANG PATTERN //
-module(the_iterator).
-export([next/1, from_list/1]).
from_list(List) -> List.
next([]) -> empty;
next([H|T]) -> {H, T}.
The Iterator
Lists and streams are consumed node by node. State is recursively passed forward, diving deeper into the stream of consciousness.
Runic Tags:
#erlang
#actors
#telepathy
#switchboard
#iterator