3export data BTree a = Leaf
4 | Node (BTree a) a (BTree a)
7insert : Ord a => a -> BTree a -> BTree a
8insert x Leaf = Node Leaf x Leaf
9insert x (Node l v r) = if (x < v) then (Node (insert x l) v r)
10 else (Node l v (insert x r))
13toList : BTree a -> List a
15toList (Node l v r) = btree.toList l ++ (v :: btree.toList r)
18toTree : Ord a => List a -> BTree a
20toTree (x :: xs) = insert x (toTree xs)
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