derw
Version:
An Elm-inspired language that transpiles to TypeScript
6 lines (5 loc) • 379 B
TypeScript
export declare function kernelLength(xs: any[]): number;
export declare function kernelEmptyList<a>(): a[];
export declare function kernelSort<a>(xs: a[]): a[];
export declare function kernelSortBy<a>(fn: (_0: a, _1: a) => number, xs: a[]): a[];
export declare function kernelStatefulFold<item, state>(fn: (item: item, state: state) => state, init: state, items: item[]): state;