Skip to content

Latest commit

 

History

History
9 lines (7 loc) · 166 Bytes

16-power-tower.md

File metadata and controls

9 lines (7 loc) · 166 Bytes

Exercise 16

The following function doesn't compile. Fix the type error.

tower :: Float -> Int -> Float
tower x 0 = 1
tower x n = x^(tower x (n-1))