haskellrank – hackerrank haskell

1 · Shane Mulligan · May 3, 2018, 4 p.m.
Tsoding HackerRank in Haskell – HaskellRank #01 - YouTube Imperative style (wrong) Haskell is about declarative programming, not imperative. 1 2 10 5 1 2 3 4 5 6 7 8 solveMeFirst a b = a + b main :: IO () main = do val1 <- readLn val2 <- readLn let sum = solveMeFirst val1 val2 print sum 15 interact function Takes a function that takes string and returns a string and applies a side-effect to the output (typically, printing to screen)....