2module Set (empty,singleton,insert,remove
18singleton k = Dict.singleton k ()
20insert : t -> Set t -> Set t
21insert k = Dict.insert k ()
23remove : t -> Set t -> Set t
26member : t -> Set t -> Bool
29union : Set t -> Set t -> Set t
32intersect : Set t -> Set t -> Set t
33intersect = Dict.intersect
35diff : Set t -> Set t -> Set t
41fromList : [t] -> Set t
42fromList xs = List.foldl (\k t -> Dict.insert k () t) empty xs
44foldl : (a -> b -> b) -> b -> Set a -> b
45foldl f b s = Dict.foldl (\k _ b -> f k b) b s
47foldr : (a -> b -> b) -> b -> Set a -> b
48foldr f b s = Dict.foldr (\k _ b -> f k b) b s
50map : (a -> b) -> Set a -> Set b
51map f s = fromList (List.map f (toList s))
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