/** * @tsplus static Maybe.Ops forEachF */ export const forEachF = ForEach.implementForEachF()( (_: { A: A B: B G: G N: N R: R E: E }) => (G: AssociativeBoth & Any & Covariant) => (f: (a: A) => HKT.Kind) => (fa: Maybe): HKT.Kind> => { return fa.isNone() ? DSL.succeedF(G)(Maybe.none) : G.map((b: B) => Maybe.some(b))(f(fa.value)) } )