3 ms·In haskell you can also use the `product` function: factorial n = product [1..n]by rnhmjoj 7y agoIn haskell you can also use the `product` function: factorial n = product [1..n]