We examine the of
function we've seen on a few types and discover it's the Pointed interface.
Instead of doing constructor way of Task:
const useTask= (x) => new Task((rej, res) => res(x))
We can just say:
Task.of("something"); //Task("something")Either.of("something"); // Either("something");Box.of(100); // Box(100)