Changeset 11961
- Timestamp:
- 16.07.2009 20:56:07 (8 months ago)
- Files:
-
- 1 modified
-
trunk/Common/Lib/Rel.hs (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Common/Lib/Rel.hs
r11871 r11961 34 34 module Common.Lib.Rel 35 35 ( Rel(), empty, null, insert, member, toMap, map 36 , union , isSubrelOf, difference, path, delete37 , succs, predecessors, irreflex, sccOfClosure36 , union, intersection, isSubrelOf, difference, path 37 , delete, succs, predecessors, irreflex, sccOfClosure 38 38 , transClosure, fromList, toList, image, toPrecMap 39 39 , intransKernel, mostRight, restrict, delSet … … 69 69 union :: Ord a => Rel a -> Rel a -> Rel a 70 70 union a b = fromSet $ Set.union (toSet a) $ toSet b 71 72 -- | intersection of two relations 73 intersection :: Ord a => Rel a -> Rel a -> Rel a 74 intersection a b = fromSet $ Set.intersection (toSet a) $ toSet b 71 75 72 76 -- | is the first relation a sub-relation of the second