© 2026 Hedgehog Software, LLC
andThen
flatMap
const program1 = pipe(O.none(), Effect.andThen(() => O.some(2)) // vs const program2 = pipe(O.some(1), Effect.flatMap(() => O.some(2)))
andThen(() => O.some(2))
andThen(O.some(2))
flatMap(() => O.some(2))