import selectionSort$ from './selectionSort$'; import type {compareFn, mapFn} from './_types'; /** * Arranges values in an order. * @param x an array * @param fc compare function (a, b) * @param fm map function (v, i, x) */ function selectionSort(x: T[], fc: compareFn=null, fm: mapFn=null): T[] { return selectionSort$(x.slice(), fc, fm); } export default selectionSort;