DEV Community

Discussion on: Daily Challenge #143 - Big Arithmetic

Collapse
 
craigmc08 profile image
Craig McIlwrath

Haskell

bigAdd :: Integer -> Integer -> Integer
bigAdd = (+) 

bigSub :: Integer -> Integer -> Integer
bigSub = (-) 

It isn't feaaible/doesn't make sense to define similar methods that take various combinations of strings and integers. Especially in a language with support for literals of arbitrarily sized integers.