Skip to content

Instantly share code, notes, and snippets.

@truthadjustr
Last active August 3, 2018 20:42
Show Gist options
  • Save truthadjustr/bd9176f9312fc2b3a2741825e0c2f5a0 to your computer and use it in GitHub Desktop.
Save truthadjustr/bd9176f9312fc2b3a2741825e0c2f5a0 to your computer and use it in GitHub Desktop.
modification
mapx f g xxs =
case xxs of
[] -> 0
(x:xs) -> f x+mapx g f xs
@truthadjustr
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment