fuzzy-rater
Version:
Tooling for fuzzily rating text according to some query
19 lines • 905 B
TypeScript
/**
* Adds a value to the given array, using array.push disguised as an immutable operation.
* This allows for the inline style of merging arrays, while only taking constant time instead of linear time,
* at the cost of higher potential of mistakes.
* @param a The array to add to
* @param b The value to be added
* @returns The array with the value added
*/
export declare function add<T>(a: T[], b: T): T[];
/**
* Adds a value to the given array, using array.push disguised as an immutable operation
* This allows for the inline style of merging arrays, while only taking constant time (for fixed b) instead of linear time,
* at the cost of higher potential of mistakes.
* @param a The array to add to
* @param b The values to be added
* @returns The array with the value added
*/
export declare function merge<T>(a: T[], b: T[]): T[];
//# sourceMappingURL=merge.d.ts.map