UNPKG

algopat

Version:

Utility library for implementing common design patterns and algorithms

12 lines 507 B
export type SelectionSortOptions = { mutable: boolean; }; /** * Performs an in-place selection sort on the given array. * @param arr The array to sort. * @param compareFn The function to compare two elements. * @param options The options for the selection sort. * @returns The sorted array (same reference as input). */ export declare const selectionSort: <T>(arr: T[], compareFn?: (a: T, b: T) => number, options?: SelectionSortOptions) => T[]; //# sourceMappingURL=select-sort.algorithm.d.ts.map