import { Base, Kind } from '@fp4ts/core'; import { CommutativeMonoid } from '@fp4ts/cats-kernel'; /** * @category Type Class */ export interface UnorderedFoldable extends Base { /** * Lazy fold mapping each element of the structure `Kind` into a commutative * monoid `M` and combining them using `combineEval`. */ unorderedFoldMap(M: CommutativeMonoid): (f: (a: A) => M) => (fa: Kind) => M; /** * Lazy fold mapping each element of the structure `Kind` into a commutative * monoid `M` and combining them using `combineEval`. */ unorderedFoldMap_(M: CommutativeMonoid): (fa: Kind, f: (a: A) => M) => M; /** * Lazy fold combining each element of the structure `Kind` using * `combineEval` of the provided commutative monoid. */ unorderedFold(M: CommutativeMonoid): (fa: Kind) => A; isEmpty(fa: Kind): boolean; nonEmpty(fa: Kind): boolean; all(p: (a: A) => boolean): (fa: Kind) => boolean; all_(fa: Kind, p: (a: A) => boolean): boolean; any(p: (a: A) => boolean): (fa: Kind) => boolean; any_(fa: Kind, p: (a: A) => boolean): boolean; count(p: (a: A) => boolean): (fa: Kind) => number; count_(fa: Kind, p: (a: A) => boolean): number; size(fa: Kind): number; } export type UnorderedFoldableRequirements = Pick, 'unorderedFoldMap_'> & Partial>; export declare const UnorderedFoldable: Readonly<{ of: (F: UnorderedFoldableRequirements) => UnorderedFoldable; }>; //# sourceMappingURL=unordered-foldable.d.ts.map