pragmatic-fp-ts
Version:
Opinionated functional programming library with easy use in mind
10 lines (9 loc) • 636 B
TypeScript
import { Dictionary } from "./main";
type Path = (string | number)[];
export declare function assocIn<A extends Dictionary>(path: Path, value: any, dict: A): A;
export declare function assocIn<A extends Dictionary>(path: Path, value: any): (dict: A) => A;
export declare function assocIn<A extends Dictionary>(path: Path): (value: any) => (dict: A) => A;
export declare function assocIn<A extends any[]>(path: Path, value: any, coll: A): A;
export declare function assocIn<A extends any[]>(path: Path, value: any): (coll: A) => A;
export declare function assocIn<A extends any[]>(path: Path): (value: any) => (coll: A) => A;
export {};