Applies the function to transform the continuation passed to the computation.
const cont = withCont((fn: (x: number) => boolean) => (a: string) => fn(parseInt(a, 10)))( (callback) => callback("foo"),);const actual = runCont(cont)(Number.isNaN);expect(actual).toStrictEqual(true); Copy
const cont = withCont((fn: (x: number) => boolean) => (a: string) => fn(parseInt(a, 10)))( (callback) => callback("foo"),);const actual = runCont(cont)(Number.isNaN);expect(actual).toStrictEqual(true);
Applies the function to transform the continuation passed to the computation.
Examples