Created
September 16, 2023 13:46
-
-
Save miladvafaeifard/26ca13914d96ea2459b64ec26eebf69c to your computer and use it in GitHub Desktop.
My first HasKell learning
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
main :: IO () | |
main = do | |
print(map doubleIt [1, 2, 3]) | |
doubleIt :: Int -> Int | |
doubleIt x = x * 2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment