zip
Zips several matrices, combining same-position values into tuples, over the union of their keys.
API Reference
Signature
Parameters
Returns
A matrix keyed by the union of input keys (ascending), each cell a tuple with
one value per input matrix. Each key's row length is the max across inputs; a
matrix missing a key or column contributes undefined.
Throws
MATRIX_INVALID_ZIP_INPUT— non-array / emptymatrices.
Agent Contract
Agent Notes
zipis merge with an identity tuple resolver; usemergewhen you need to reduce the values instead.- A present
"-"stays in the tuple; only a missing key/column isundefined.