4 | Node (BTree a) a (BTree a)
6insert : Ord a => a -> BTree a -> BTree a
7insert x Leaf = Node Leaf x Leaf
8insert x (Node l v r) = if (x < v) then (Node (insert x l) v r)
9 else (Node l v (insert x r))
11toList : BTree a -> List a
13toList (Node l v r) = toList l ++ (v :: toList r)
15toTree : Ord a => List a -> BTree a
17toTree (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