Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- getKeywordDefs :: [String] -> KeywordDefs
- getKeywordDefs [] = []
- getKeywordDefs (x:xs)
- = splitItems x : getKeywordDefs xs
- where
- splitItems :: String -> (String, String)
- splitItems string
- | b == [] = (b, a)
- | otherwise = (a, tail b)
- where
- (a, b) = let f x = (x `elem` separators) in break f string
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement