3 ms·
Ah duh. That makes sense. Would it also make sense to use Maybe monad for converting a [Char] to an Integer? stringToInt :: [Char] -> Maybe Integer
by tkahn6 16y ago
Ah duh. That makes sense.
Would it also make sense to use Maybe monad for converting a [Char] to an Integer?
stringToInt :: [Char] -> Maybe Integer
- naradaellis 16y agoYeah it would. I think there was a Real World Haskell exercise that involved that actually.