SRGS: add top-level rules for each GF category.

This commit is contained in:
bringert
2006-02-01 19:00:48 +00:00
parent 8cd03874f6
commit bdf602b95c
2 changed files with 14 additions and 1 deletions

View File

@@ -99,6 +99,11 @@ tableSet x y [] = [(x,y)]
tableSet x y (p@(x',_):xs) | x' == x = (x,y):xs
| otherwise = p:tableSet x y xs
-- | Group tuples by their first elements.
buildMultiMap :: Ord a => [(a,b)] -> [(a,[b])]
buildMultiMap = map (\g -> (fst (head g), map snd g) )
. sortGroupBy (compareBy fst)
-- * equality functions
-- | Use an ordering function as an equality predicate.