1module RelationTupleSet where
3import qualified Data.Map as M
4import qualified Data.Set as S
5import qualified Data.List as L
6import qualified Data.HashSet as HS
9emptyTupleSet = HS.empty
10emptyAttributeSet = M.empty
12--ensure that all maps have the same keys and key count
14verifyRelationTupleSet :: RelationTupleSet -> (Bool,String)
15verifyRelationTupleSet tupleSet = if HS.size failedTupleSet > 0
16 then (False,"Tuple count or key mismatch: " ++ show failedTupleSet)
19 allKeys = HS.foldr allKeysFolder S.empty tupleSet
20 allKeysFolder (RelationTuple m) = (S.union . M.keysSet) m
21 failedTupleSet = HS.filter (\(RelationTuple m) -> (M.keysSet m) /= allKeys) tupleSet
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list