Name: Anonymous 2015-03-04 8:27
I think that Functional Programming is almost as much of a hoax as Artificial Intelligence. I have yet to see an interesting piece of code that comes from these FP people.
loeb x = fmap (\a -> a (loeb x)) x
fact n = loeb fact' n where
fact' 0 = return 1
fact' n = do
f <- ask
return $ n*f (n-1)