concat two list haskell code example
Example 1: concat two integers haskell
addDigit a b | a < 0 = a * 10 - b
| otherwise = a * 10 + b
Example 2: how to concatenate lists in haskell
"hello " ++ "world"
addDigit a b | a < 0 = a * 10 - b
| otherwise = a * 10 + b
"hello " ++ "world"