I'm just learning Haskell. I thought this would produce a factorial function...
(within ghci)
Prelude> let ft 0 = 1
Prelude> let ft n = n * ft (n - 1)
Prelude> ft 5
(hangs indefinitely, until ^C).
Can someone point me in the right direction?
Thanks!