merge
Merges several matrices with a resolver, over the union of their keys.
API Reference
Signature
Parameters
Returns
A matrix keyed by the union of input keys (ascending). Each key's row length is
the max across inputs; a matrix missing a key or column contributes undefined.
Throws
MATRIX_INVALID_MERGE_INPUT— non-array / emptymatrices, or a non-functionresolver.
Agent Contract
Agent Notes
- A cell value of
"-"is passed to the resolver as"-"; handle it explicitly. - Missing key/column is
undefined, distinct from a present"-". - To pair values into tuples instead of resolving, use zip.