flipped order of args in adjust

This commit is contained in:
Drew Wyatt
2019-02-25 10:04:59 -05:00
parent b1285dace3
commit f4cc3df1cc

View File

@@ -473,8 +473,8 @@ declare namespace R {
* 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.
*/
adjust<T>(fn: (a: T) => T, index: number, list: ReadonlyArray<T>): T[];
adjust<T>(fn: (a: T) => T, index: number): (list: ReadonlyArray<T>) => T[];
adjust<T>(index: number, fn: (a: T) => T, list: ReadonlyArray<T>): T[];
adjust<T>(index: number, fn: (a: T) => T): (list: ReadonlyArray<T>) => T[];
/**
* Returns true if all elements of the list match the predicate, false if there are any that don't.