News for hackers. Stuff that matters.
Re:Functors and Monads for People Who Have Read Too Many “Tu... by hiker on Saturday June 26, 2021 @04:37AM (#27640221)
> Cool, I have no idea what the fuck this means and how it is useful to me.

> Oh wait, I use them every day.

Do you really? Do the `functions` you use even fit the above definition?

I bet you can think of infinite number of functions (bool -> bool). The above definition admits only 4 such functions.

Re:Functors and Monads for People Who Have Read Too Many “Tu... by bb010g on Saturday June 26, 2021 @05:33PM (#27646093)
There are only 4 (2**2) such pure functions. For type (Bool -> IO Bool), there are infinite (∞**2) such pure functions.