Maps and flattens the hom with fn.
fn
The mapped hom X => B.
X => B
const mapper = flatMap<number>()((x: number) => (y: number) => x * y);expect(mapper((x) => x + 1)(3)).toStrictEqual(12); Copy
const mapper = flatMap<number>()((x: number) => (y: number) => x * y);expect(mapper((x) => x + 1)(3)).toStrictEqual(12);
Maps and flattens the hom with
fn.