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.
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
| Definitions | 1 |
|---|---|
| Public names | 1 |
| Members | 0 |
| Version | 26.7.0 |
| Revision | daab053ee433 |