Created
November 6, 2018 19:48
-
-
Save dmwit/a3863704908d470fde232b5044131e93 to your computer and use it in GitHub Desktop.
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
fs :: Bool -> Int -> Int | |
fs False = (+1) | |
fs True = (*3) | |
vals :: Bool -> Int | |
vals False = 10 | |
vals True = 20 | |
fOfVals :: Bool -> Int | |
fOfVals = fs <*> vals |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment