@electric-sql/d2mini
Version:
D2Mini is a minimal implementation of Differential Dataflow for performing in-memory incremental view maintenance.
14 lines (13 loc) • 453 B
TypeScript
import { PipedOperator } from '../types.js';
import { LinearUnaryOperator } from '../graph.js';
import { MultiSet } from '../multiset.js';
/**
* Operator that negates the multiplicities in the input stream
*/
export declare class NegateOperator<T> extends LinearUnaryOperator<T, T> {
inner(collection: MultiSet<T>): MultiSet<T>;
}
/**
* Negates the multiplicities in the input stream
*/
export declare function negate<T>(): PipedOperator<T, T>;