agsamantha/node_modules/langchain/dist/util/set.d.ts
2024-10-02 15:15:21 -05:00

15 lines
483 B
TypeScript

/**
* Source: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set#implementing_basic_set_operations
*/
/**
* returns intersection of two sets
*/
export declare function intersection<T>(setA: Set<T>, setB: Set<T>): Set<T>;
/**
* returns union of two sets
*/
export declare function union<T>(setA: Set<T>, setB: Set<T>): Set<T>;
/**
* returns difference of two sets
*/
export declare function difference<T>(setA: Set<T>, setB: Set<T>): Set<T>;