1{-# OPTIONS_GHC -Wall #-}
14import Prelude hiding (map)
15import qualified Data.List as List
42append :: Bag a -> Bag a -> Bag a
59map :: (a -> b) -> Bag a -> Bag b
69 Two (map func left) (map func right)
81toListHelp :: Bag a -> [a] -> [a]
91 toListHelp a (toListHelp b list)
98fromList :: (a -> b) -> [a] -> Bag b
105 List.foldl' (add func) (One (func first)) rest
108add :: (a -> b) -> Bag b -> a -> Bag b
110 Two (One (func value)) bag
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