3 ms·
Naive factorial implementation in Haskell factorial 0 = 1 factorial n = n * factorial (n - 1)
by sssilver 11y ago
Naive factorial implementation in Haskell
factorial 0 = 1
factorial n = n * factorial (n - 1)
- agumonkey 11y agofib, with its tail biting zip felt even better. one of my favorite intermediate recursive function is powerset