Advertisement
Guest User

Untitled

a guest
Oct 24th, 2014
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. getKeywordDefs :: [String] -> KeywordDefs
  2. getKeywordDefs [] = []
  3. getKeywordDefs (x:xs)
  4. = splitItems x : getKeywordDefs xs
  5. where
  6. splitItems :: String -> (String, String)
  7. splitItems string
  8. | b == [] = (b, a)
  9. | otherwise = (a, tail b)
  10. where
  11. (a, b) = let f x = (x `elem` separators) in break f string
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement