import * as D from "@effect-ts/core/Collections/Immutable/Dictionary" export const { collect, collect_ } = D export const map_ = >( fa: T & D.Dictionary, f: (a: TIn) => TOut ) => D.map_(fa, f) as { [P in keyof T]: TOut } export const mapWithIndex_ = >( fa: T & D.Dictionary, f: (i: keyof T, a: TIn) => TOut ) => D.mapWithIndex_(fa, f) as { [P in keyof T]: TOut } export const map = >(f: (a: TIn) => TOut) => (fa: T & D.Dictionary) => map_(fa, f) export const mapWithIndex = >(f: (i: keyof T, a: TIn) => TOut) => (fa: T & D.Dictionary) => mapWithIndex_(fa, f)