Skip to content

Instantly share code, notes, and snippets.

@miladvafaeifard
Created September 16, 2023 13:46
Show Gist options
  • Save miladvafaeifard/26ca13914d96ea2459b64ec26eebf69c to your computer and use it in GitHub Desktop.
Save miladvafaeifard/26ca13914d96ea2459b64ec26eebf69c to your computer and use it in GitHub Desktop.
My first HasKell learning
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