let
fold_range s ~init ~f =
BatAvlTree
.fold (
fun
(n1, n2) x
->
f n1 n2 x) s init