import type * as P from "@principia/prelude"; import type { ReadonlyRecord, URI, V } from "./model"; /** * ```haskell * mapWithIndex_ :: (FunctorWithIndex f, Index k) => (f a, ((k, a) -> b)) -> f b * ``` * * Map a record passing the keys to the iterating function * * @category FunctorWithIndex * @since 1.0.0 */ export declare const mapWithIndex_: ( fa: Readonly>, f: (k: N, a: A) => B ) => Readonly>; /** * ```haskell * mapWithIndex_ :: (FunctorWithIndex f, Index k) => ((k, a) -> b) -> f a -> f b * ``` * * Map a record passing the keys to the iterating function * * @category FunctorWithIndex * @since 1.0.0 */ export declare const mapWithIndex: ( f: (k: N, a: A) => B ) => (fa: Readonly>) => Readonly>; /** * ```haskell * map_ :: Functor f => (f a, (a -> b)) -> f b * ``` * * Map a record passing the values to the iterating function * * @category Functor * @since 1.0.0 */ export declare const map_: ( fa: Readonly>, f: (a: A) => B ) => Readonly>; /** * ```haskell * map :: Functor f => (a -> b) -> f a -> f b * ``` * * Map a record passing the values to the iterating function * * @category Functor * @since 1.0.0 */ export declare const map: ( f: (a: A) => B ) => (fa: Readonly>) => Readonly>; export declare const Functor: P.Functor<[URI], V>; export declare const FunctorWithIndex: P.FunctorWithIndex<[URI], V>; //# sourceMappingURL=functor.d.ts.map