UNPKG

pragmatic-fp-ts

Version:

Opinionated functional programming library with easy use in mind

4 lines (3 loc) 235 B
import { Dictionary, Mappable } from "./main"; export declare function indexBy<A>(mkIndex: Mappable<A, string>, coll: A[]): Dictionary<A>; export declare function indexBy<A>(mkIndex: Mappable<A, string>): (coll: A[]) => Dictionary<A>;