Set 2 Ex 4: fix mistake in example

This commit is contained in:
Joel Kaasinen
2020-05-08 10:48:34 +03:00
parent c8d7aaa0e3
commit a60490fad9
+1 -1
View File
@@ -58,7 +58,7 @@ updateAt i x xs = todo
-- Examples:
-- substring 2 5 "abcdefgh" ==> "cde"
-- substring 2 2 "abcdefgh" ==> ""
-- substring 0 3 "abcdefgh" ==> "abcd"
-- substring 0 4 "abcdefgh" ==> "abcd"
substring :: Int -> Int -> String -> String
substring i j s = todo