Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import Data.List
- import Data.Function
- import Text.Read
- import Data.Maybe
- import Data.Char
- all_numbers :: String -> [Int]
- all_numbers =
- mapMaybe (readMaybe :: String -> Maybe Int) .
- groupBy ((==) `on` isDigit)
Add Comment
Please, Sign In to add comment