6 | Node (BTree a) a (BTree a)
9testTree = Node (Node Leaf "Jim" Leaf)
11 (Node (Node Leaf "Alice" Leaf)
13 (Node Leaf "Bob" Leaf))
15treeTagAux : BTree a -> { ['Tag ::: STATE Int,
16 'Leaves ::: STATE Int] } Eff (BTree (Int, a))
17treeTagAux Leaf = do 'Leaves :- update (+1)
19treeTagAux (Node l x r)
20 = do l' <- treeTagAux l
24 pure (Node l' (i, x) r')
26treeTag : (i : Int) -> BTree a -> (BTree (Int, a), Int)
27treeTag i x = runPureInit ['Tag := i, 'Leaves := 0]
28 (do x' <- treeTagAux x
29 pure (x', !('Leaves :- get)))
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