import { tuple } from "../Function"; import { mapBothPar_ } from "./apply-par"; import type { Async } from "./model"; /* * ------------------------------------------- * Parallel Applicative Async * ------------------------------------------- */ export const bothPar_ = ( fa: Async, fb: Async ): Async => mapBothPar_(fa, fb, tuple); export const bothPar = (fb: Async) => ( fa: Async ): Async => bothPar_(fa, fb);