pragmatic-fp-ts
Version:
Opinionated functional programming library with easy use in mind
5 lines (4 loc) • 306 B
TypeScript
import { Endomorphism } from "./main";
export declare function adjust<A>(idx: number, fn: Endomorphism<A>, coll: A[]): A[];
export declare function adjust<A>(idx: number, fn: Endomorphism<A>): (coll: A[]) => A[];
export declare function adjust(idx: number): <A>(fn: Endomorphism<A>) => (coll: A[]) => A[];