3 ms·
It’s even better in Haskell: Haskell only has single-argument functions, so multiple arguments are really function factories, and sometimes they produce other f
by fiddlerwoaroof 3y ago
It’s even better in Haskell: Haskell only has single-argument functions, so multiple arguments are really function factories, and sometimes they produce other function factories. So, the type signature of a FactoryFactoryFactory is something like foldr:
(a -> b -> b) -> b -> [a] -> b
- eyelidlessness 3y agoHeh I was thinking about implicit currying too and I just figured that much factorying would break too many brains.
- eyelidlessness 3y agoLest we forget lisp, where literally every thing in a program is a list factory, even the last item in a list. Even a list with no items.