Set 1 Ex 10: mention negative k

This commit is contained in:
Joel Kaasinen
2025-11-07 08:14:14 +02:00
parent c950665133
commit 177ee46ed0
+1
View File
@@ -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