Metakit / @doeixd/metakit/pairs
commutes
function · packages/metakit/src/transitionCommutes.ts:57
function commutes<State, InputA, EmitA, SuppliedA, InputB, EmitB, SuppliedB>(
a: Transition<State, InputA, EmitA, SuppliedA>,
b: Transition<State, InputB, EmitB, SuppliedB>,
options?: ReaderOptions,
): Verdict.Verdict<never>Whether a and b give one state, one set of emitted records and one
refusal in either order. Two combines with one operation commute only
where its commutative and associative claims apply under
options.rewritePolicy: with no policy no claim applies, and the pair is
Unknown.