-
-
Save truthadjustr/bd9176f9312fc2b3a2741825e0c2f5a0 to your computer and use it in GitHub Desktop.
modification
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mapx f g xxs = | |
case xxs of | |
[] -> 0 | |
(x:xs) -> f x+mapx g f xs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
line 3 is Num so line 4 : must be change to + to match the type. Otherwise, line 3 is a Num and line 4 is a list and there is a type mismatch