Created
September 13, 2019 23:45
-
-
Save dmwit/1b8a7674cd3c86bb7e0a56306d368c35 to your computer and use it in GitHub Desktop.
a better tutorialspoint
This file contains hidden or 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
module Custom ( | |
showEven, | |
showBoolean | |
) where | |
showEven:: Int-> Bool | |
showEven x = x `rem` 2 == 0 | |
showBoolean :: Bool->Int | |
showBoolean c = if c then 1 else 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment