import { Endo1, CurriedFunction2 } from '../typings/types'; interface Adjust { (fn: Endo1, index: number, list: ArrayLike): T[]; (fn: Endo1, index: number): (list: ArrayLike) => T[]; (fn: Endo1): CurriedFunction2, T[]>; } /** * Applies a function to the value at the given index of an array, returning a * new copy of the array with the element at the given index replaced with the * result of the function application. * * @param {Function} fn The function to apply. * @param {Number} idx The index. * @param {Array} list An array whose value * at the supplied index will be replaced. * @return {Array} A copy of the supplied array with * the element at index `idx` replaced with the value * returned by applying `fn` to the existing element. * * @example * * adjust(add(10), 1, [1, 2, 3]); //=> [1, 12, 3] * adjust(add(10))(1)([1, 2, 3]); //=> [1, 12, 3] */ declare const _default: Adjust; export default _default;