import { Collection } from "@tsplus/stdlib/collections/Collection/definition"; import { AssociativeIdentity } from "@tsplus/stdlib/prelude/AssociativeIdentity/definition"; /** * Zips the values of both iterators with the provided zipper function * @tsplus static Collection.Aspects zipWith * @tsplus pipeable Collection zipWith * @tsplus location "@tsplus/stdlib/collections/Collection/functions" */ export declare function zipWith(that: Collection, zipper: (a: A, b: B) => C): (self: Collection) => Collection; /** * Maps the values of the iterator using the provided function * @tsplus static Collection.Aspects map * @tsplus pipeable Collection map * @tsplus location "@tsplus/stdlib/collections/Collection/functions" */ export declare function map(f: (a: A, k: number) => B): (self: Collection) => Collection; /** * Zips the two iterators into an iterator of a tuple * @tsplus static Collection.Aspects zip * @tsplus pipeable Collection zip * @tsplus location "@tsplus/stdlib/collections/Collection/functions" */ export declare function zip(that: Collection): (self: import("./definition").Collection) => import("./definition").Collection; /** * Maps the iterator using the provided function and flatten its result * @tsplus static Collection.Aspects flatMap * @tsplus pipeable Collection flatMap * @tsplus location "@tsplus/stdlib/collections/Collection/functions" */ export declare function flatMap(f: (a: A) => Collection): (self: Collection) => Collection; /** * Applicative's apply * @tsplus static Collection.Aspects ap * @tsplus pipeable Collection ap * @tsplus location "@tsplus/stdlib/collections/Collection/functions" */ export declare function ap(fa: Collection): (fab: import("./definition").Collection<(a: A) => B>) => Collection; /** * Creates an iterator of a single value * @tsplus static Collection.Ops of * @tsplus location "@tsplus/stdlib/collections/Collection/functions" */ export declare function of(a: A): Collection; /** * Takes the fist n elements * @tsplus static Collection.Aspects take * @tsplus pipeable Collection take * @tsplus location "@tsplus/stdlib/collections/Collection/functions" */ export declare function take(n: number): (self: import("./definition").Collection) => import("./definition").Collection; /** * Skips the first n elements * @tsplus static Collection.Aspects skip * @tsplus pipeable Collection skip * @tsplus location "@tsplus/stdlib/collections/Collection/functions" */ export declare function skip(n: number): (a: import("./definition").Collection) => import("./definition").Collection; /** * Empty iterator * @tsplus static Collection.Ops never * @tsplus location "@tsplus/stdlib/collections/Collection/functions" */ export declare const never: Collection; /** * Loops over the iterator accumulating a result using the provided function giving access to the element index * @tsplus static Collection.Aspects reduceWithIndex * @tsplus pipeable Collection reduceWithIndex * @tsplus location "@tsplus/stdlib/collections/Collection/functions" */ export declare function reduceWithIndex(b: B, f: (b: B, a: A, index: number) => B): (self: Collection) => B; /** * Loops over the iterator accumulating a result using the provided function * @tsplus static Collection.Aspects reduce * @tsplus pipeable Collection reduce * @tsplus location "@tsplus/stdlib/collections/Collection/functions" */ export declare function reduce(b: B, f: (b: B, a: A) => B): (self: Collection) => B; /** * Loops over the iterator accumulating a result using the provided function and AssociativeIdentity giving access to the element index * @tsplus static Collection.Aspects foldMapWithIndex * @tsplus pipeable Collection foldMapWithIndex * @tsplus location "@tsplus/stdlib/collections/Collection/functions" */ export declare function foldMapWithIndex(M: AssociativeIdentity, f: (a: A, index: number) => M): (self: Collection) => M; /** * Loops over the iterator accumulating a result using the provided function and AssociativeIdentity * @tsplus static Collection.Aspects foldMap * @tsplus pipeable Collection foldMap * @tsplus location "@tsplus/stdlib/collections/Collection/functions" */ export declare function foldMap(M: AssociativeIdentity, f: (a: A) => M): (self: Collection) => M; /** * Concats iterators together * @tsplus pipeable-operator Collection & * @tsplus static Collection.Aspects concat * @tsplus pipeable Collection concat * @tsplus location "@tsplus/stdlib/collections/Collection/functions" */ export declare function concat(that: Collection): (self: import("./definition").Collection) => import("./definition").Collection; /** * Concats iterators together that are strictly of the same type * @tsplus pipeable-operator Collection + * @tsplus location "@tsplus/stdlib/collections/Collection/functions" */ export declare function concatOperator(that: Collection): (self: Collection) => Collection; /** * Prepends a value to an iterator * @tsplus static Collection.Aspects prepend * @tsplus pipeable Collection prepend * @tsplus location "@tsplus/stdlib/collections/Collection/functions" */ export declare function prepend(that: B): (self: import("./definition").Collection) => import("./definition").Collection; /** * Prepends a value to an iterator * @tsplus pipeable-operator Collection > * @tsplus location "@tsplus/stdlib/collections/Collection/functions" */ export declare function prependOperator(self: Collection): (a: A) => import("./definition").Collection; /** * Prepends a value to an iterator of the same type * @tsplus pipeable-operator Collection + 1.0 * @tsplus location "@tsplus/stdlib/collections/Collection/functions" */ export declare function prependOperatorStrict(self: Collection): (a: A) => Collection; /** * Appends a value to an iterator. * @tsplus pipeable-operator Collection < * @tsplus static Collection.Aspects append * @tsplus pipeable Collection append * @tsplus location "@tsplus/stdlib/collections/Collection/functions" */ export declare function append(that: B): (self: import("./definition").Collection) => import("./definition").Collection; /** * Appends a value to an iterator of the same type * @tsplus pipeable-operator Collection + 1.0 * @tsplus location "@tsplus/stdlib/collections/Collection/functions" */ export declare function appendOperatorStrict(a: A): (self: Collection) => Collection; /** * Flattens nested iterators * @tsplus getter Collection flatten * @tsplus location "@tsplus/stdlib/collections/Collection/functions" */ export declare function flatten(self: Collection>): import("./definition").Collection; /** * Infinite sequence produced by repeated application of f to a * @tsplus static Collection.Ops unfold * @tsplus location "@tsplus/stdlib/collections/Collection/functions" */ export declare function unfold(a: A, f: (a: A) => A): Collection; /** * Compares each element of the iterators using the provided function * @tsplus static Collection.Aspects equalsWith * @tsplus pipeable Collection equalsWith * @tsplus location "@tsplus/stdlib/collections/Collection/functions" */ export declare function equalsWith(that: Collection, f: (a: A, b: B) => boolean): (self: Collection) => boolean; /** * Compares the iterators using value equality * @tsplus pipeable-operator Collection == * @tsplus static Collection.Aspects equals * @tsplus pipeable Collection equals * @tsplus location "@tsplus/stdlib/collections/Collection/functions" */ export declare function equals(that: Collection): (self: Collection) => boolean; export declare function equals(that: Collection): (self: Collection) => boolean; /** * @tsplus static Collection.Ops make * @tsplus static Collection.Ops __call * @tsplus location "@tsplus/stdlib/collections/Collection/functions" */ export declare function make(...as: A): Collection; /** * @tsplus getter Collection toArray * @tsplus location "@tsplus/stdlib/collections/Collection/functions" */ export declare function toArray(data: Collection): Array; //# sourceMappingURL=functions.d.ts.map