Guest User

Untitled

a guest
Jun 25th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. import Data.List
  2. import Data.Function
  3. import Text.Read
  4. import Data.Maybe
  5. import Data.Char
  6.  
  7.  
  8. all_numbers :: String -> [Int]
  9. all_numbers =
  10. mapMaybe (readMaybe :: String -> Maybe Int) .
  11. groupBy ((==) `on` isDigit)
Add Comment
Please, Sign In to add comment