The "obvious" way to write a monadic zygomorphism is to look at the definition for an ordinary zygomorphism, namely
The totient function is defined for positive integers as:
I read a recent Functional Pearl by Hinze and this inspired me to write up an example of projective programming and its motivation in logic/model theory.
Here I would like to present benchmarks associated with my past
post comparing different methods of
summing the first \( n \) numbers. In each case, we benchmarked sum(200),
that is, \( \sum_{i=1}^{200} i \).
This post was inspired by a curious
question on
Twitter: is curry or uncurry more common in Haskell code?