Creating Functions In Haskell

[Solved] Creating Functions In Haskell | Haskell - Code Explorer | yomemimo.com
Question : creating functions in haskell

Answered by : renz-carillo

add :: Integer -> Integer -> Integer --function declaration
add x y = x + y --function definition
main = do putStrLn "The addition of the two numbers is:" print(add 2 5) --calling a function

Source : https://www.tutorialspoint.com/haskell/haskell_functions.htm | Last Update : Thu, 26 May 22

Answers related to creating functions in haskell

Code Explorer Popular Question For Haskell