merge
Merges several sheets with a resolver, over the union of their keys.
API Reference
Signature
Parameters
Returns
A sheet keyed by the union of input keys (ascending). Each key's row length is
the max across inputs; a sheet missing a key or column contributes undefined.
Throws
SHEET_INVALID_MERGE_INPUT— non-array / emptysheets, 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.