Skip to main content

iteration_snapshot

Function iteration_snapshot 

Source
pub fn iteration_snapshot(v: &RuntimeValue) -> Result<Vec<RuntimeValue>, String>
Expand description

The Repeat iteration snapshot: the collection is materialized ONCE before the loop, so mutation inside the body cannot extend or shrink the iteration. Text iterates per char (as 1-char Texts); a Map yields (key, value) Tuples in insertion order. A shared collection yields what every replica holding its state agrees on: a sequence in its convergent order, a set sorted, a map’s (key, value) Tuples by key.