3 ms·
It's not like that first factorial function is actually any worse than the usual Haskell one: fac = \n -> product [1..n] The recursive one is also much th
by icen 10y ago
It's not like that first factorial function is actually any worse than the usual Haskell one:
fac = \n -> product [1..n]
The recursive one is also much the same as a Haskell one, but Q is hardly built around idiomatic recursion.