// ets_tracing: off import * as O from "@effect-ts/system/Option" import type { OptionURI } from "../../Modules/index.js" import * as P from "../../Prelude/index.js" export const compactF = P.implementCompactF<[P.URI]>()( (_) => (F) => (f) => (fa) => { return O.isNone(fa) ? P.succeedF(F)(O.none) : f(fa.value) } )