/** * @tsplus static Chunk.Ops compactWithIndexF */ export const compactWithIndexF = WitherableWithIndex.implementCompactWithIndexF< number, Chunk.HKT >()( (_: { A: A B: B G: G FR: FR FE: FE }) => (G: Applicative) => (f: (k: number, a: A) => HKT.Kind>) => (fa: Chunk): HKT.Kind> => G.map((self: Chunk>) => self.compact)(Chunk.forEachWithIndexF(G)(f)(fa)) )