1module RelationTupleSet where
3import qualified Data.Map as M
4import qualified Data.Set as S
5import qualified Data.HashSet as HS
7emptyTupleSet = HS.empty
8emptyAttributeSet = M.empty
10--ensure that all maps have the same keys and key count
12verifyRelationTupleSet :: RelationTupleSet -> (Bool,String)
13verifyRelationTupleSet tupleSet = if HS.size failedTupleSet > 0
14 then (False,"Tuple count or key mismatch: " ++ show failedTupleSet)
17 allKeys = HS.foldr allKeysFolder S.empty tupleSet
18 allKeysFolder (RelationTuple m) = (S.union . M.keysSet) m
19 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