Balance_list_treeval sexp_of_t : ('a -> Sexplib0.Sexp.t) -> 'a t -> Sexplib0.Sexp.tval balance : n:int -> 'a list -> 'a t Core.Or_error.tBalances the given list. Each sublist's length within the tree has the property of being <= n.
The function returns an error if: