import { mapBoth_ } from "./apply-seq"; import type { Managed } from "./model"; /** * Returns a managed that executes both this managed and the specified managed, * in sequence, combining their results with the specified `f` function. */ export const both_ = (self: Managed, that: Managed) => mapBoth_(self, that, (a, a2) => [a, a2] as [A, A1]); /** * Returns a managed that executes both this managed and the specified managed, * in sequence, combining their results with the specified `f` function. */ export const both = (that: Managed) => (self: Managed) => mapBoth_(self, that, (a, a2) => [a, a2] as [A, A1]);