mirror of
https://github.com/iritmaximus/haskell.git
synced 2026-10-12 19:13:39 +03:00
Set 1 Ex 10: mention negative k
This commit is contained in:
@@ -105,6 +105,7 @@ sumTo = todo
|
||||
------------------------------------------------------------------------------
|
||||
-- Ex 10: power n k should compute n to the power k (i.e. n^k)
|
||||
-- Use recursion.
|
||||
-- There's no need to handle negative values of k.
|
||||
|
||||
power :: Integer -> Integer -> Integer
|
||||
power = todo
|
||||
|
||||
Reference in New Issue
Block a user