Maps the hom X => A with f.
X => A
f
The mapped hom.
const mapper = map<string>()((x: number) => x * 2);expect(mapper(parseInt)("20")).toStrictEqual(40); Copy
const mapper = map<string>()((x: number) => x * 2);expect(mapper(parseInt)("20")).toStrictEqual(40);
Maps the hom
X => Awithf.