Metakit / @doeixd/metakit
reduceProperties
function · packages/metakit/src/ops/reduceProperties.ts:19
function reduceProperties(
op: Node.ForeignOp,
options?: ReaderOptions,
): FoldPropertiesDerive a reduce fold's properties from its custom operation's claims.
Its identity is the fold's definition (the answer over no element) and is
always read. commutative, associative and invertible, which let a
reader reorder or invert the fold, are read only where options.rewritePolicy
applies the operation's claims to the implementation options.foreign
binds; with no policy the row has none of them.