Under heavy development. This site describes the intended 1.0 language. Current features and performance vary. Development status
Sn50SnThe SnAPI programming language
Development · Evolving reference

ZipItem

Pairs items delivered in order by two independent cursors.

Sn is under heavy development. This reference includes the intended 1.0 design; features may be incomplete in the current compiler. Read the status →

Module std.iteration

import std.iteration;

Public declaration contracts and authored examples. A page can document several related symbols. Implementation bodies are excluded.

ZipItem

pub final class ZipItem<L, R> where L: Movable where R: Movable

Pairs items delivered in order by two independent cursors.

This record owns transferred values and retains reference aliases without owning their backing. It adds no allocation or synchronization. Borrowed fields expire under their source's invalidation rules; concurrent writes require external synchronization. Present carriers transfer owning payloads through their selected lifecycle; reference carriers preserve aliases without moving their referents. L: Exact Movable left item type. R: Exact Movable right item type.

ZipItem.Left

pub Left: L;

Exact left item or alias; backing lifetime remains external.

ZipItem.Right

pub Right: R;

Exact right item or alias; backing lifetime remains external.

Documentation snapshot: October 24, 2026 About versions ↗
Searching Development · language & standard library