Print slf_graphviz with subgraphs.

This commit is contained in:
bringert
2006-01-05 12:59:36 +00:00
parent a4ba93cc55
commit 5c0d9d52b3
4 changed files with 63 additions and 22 deletions

View File

@@ -88,6 +88,12 @@ lookup' x = fromJust . lookup x
find' :: (a -> Bool) -> [a] -> a
find' p = fromJust . find p
-- | Set a value in a lookup table.
tableSet :: Eq a => a -> b -> [(a,b)] -> [(a,b)]
tableSet x y [] = [(x,y)]
tableSet x y (p@(x',_):xs) | x' == x = (x,y):xs
| otherwise = p:tableSet x y xs
-- * equality functions
-- | Use an ordering function as an equality predicate.