@tempest/core
Version:
The core of the Tempest Stream Library
14 lines (13 loc) • 798 B
TypeScript
/** @license MIT License (c) copyright 2010-2016 original author or authors */
export declare function cons<T>(x: T, a: T[]): T[];
export declare function append<T>(x: T, a: T[]): T[];
export declare function drop<T>(n: number, a: T[]): T[];
export declare function tail<T>(a: T[]): T[];
export declare function copy<T>(a: T[]): T[];
export declare function map<T, R>(f: (t: T) => R, a: T[]): R[];
export declare function reduce<T, R>(f: (r: R, t: T, i: number) => R, z: R, a: T[]): R;
export declare function replace<T>(x: T, i: number, a: T[]): T[];
export declare function remove<T>(i: number, a: T[]): T[];
export declare function removeAll<T>(f: (t: T) => boolean, a: T[]): T[];
export declare function findIndex<T>(x: T, a: T[]): number;
export declare function isArrayLike(x: any): boolean;