6-- TODO: add intersection, union, difference
8data SortedSet k = SetWrapper (Data.SortedMap.SortedMap k ())
11empty = SetWrapper Data.SortedMap.empty
13insert : Ord k => k -> SortedSet k -> SortedSet k
14insert k (SetWrapper m) = SetWrapper (Data.SortedMap.insert k () m)
16delete : Ord k => k -> SortedSet k -> SortedSet k
17delete k (SetWrapper m) = SetWrapper (Data.SortedMap.delete k m)
19contains : Ord k => k -> SortedSet k -> Bool
20contains k (SetWrapper m) = isJust (Data.SortedMap.lookup k m)
22fromList : Ord k => List k -> SortedSet k
23fromList l = SetWrapper (Data.SortedMap.fromList (map (\i => (i, ())) l))
25toList : Ord k => SortedSet k -> List k
26toList (SetWrapper m) = map (\(i, _) => i) (Data.SortedMap.toList m)
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