diff

abstract fun diff(a: CompareOperand, b: CompareOperand, options: DiffOptions = DiffOptions()): Flow<Difference>(source)

The differences between a (left) and b (right), streamed in canonical order (SPEC.md §9.3): depth first, object members by key, array elements by index. Each collection runs the comparison on one new snapshot, on the store's dispatcher, and stops after DiffOptions.maxDifferences. Errors as in isEqual, thrown when collecting.