Maps an inner value of a Cat into another one by applying a function. It is useful to lift a function for Cat.
Cat
A function which maps from T to U.
T
U
A lifted function which maps from Cat<T> to Cat<U>.
Cat<T>
Cat<U>
const actual = map((v: number) => v / 2)(cat(10)).value;expect(actual).toStrictEqual(5); Copy
const actual = map((v: number) => v / 2)(cat(10)).value;expect(actual).toStrictEqual(5);
Maps an inner value of a
Catinto another one by applying a function. It is useful to lift a function forCat.