Skip to documentation
SLOP

tiny.preserves.restPattern

Reference tiny.preserves restPattern

Defined in tiny.preserves.

Makes a rest pattern from the patterns prefix for the first items and the pattern rest for the items after them.

No direct callersNo direct callstiny.preservesrestPattern
Static calls · unresolved targets: unknown · external targets: unknown.

Source

Source: lib/preserves/src/any.zig:193

zig
/// Makes a rest pattern from the patterns `prefix` for the first items and the pattern `rest` for/// the items after them. Code that writes a pattern by hand calls it for a sequence whose tail has/// any length. The call copies the slice `prefix` and allocates one cell for `rest`, copying outer/// structs only. `freeValue` frees exactly the prefix copy and the cell. On `error.OutOfMemory` the/// call frees what it allocated.pub const restPattern = any_constructors.restPattern;

Source: lib/preserves/src/root.zig:202

zig
pub const restPattern = any.restPattern;

Audit

Definitions1
Public names1
Members0
Version26.7.0
Revisiondaab053ee433