From a0ea857685804735d60f19a166274745d8785e62 Mon Sep 17 00:00:00 2001 From: Sébastien Dailly Date: Sun, 29 Jul 2018 19:01:24 +0200 Subject: Update the traversing sheet function --- src/tree/splay.mli | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/tree/splay.mli') diff --git a/src/tree/splay.mli b/src/tree/splay.mli index a640075..60d067b 100755 --- a/src/tree/splay.mli +++ b/src/tree/splay.mli @@ -48,6 +48,11 @@ module Make (El : KEY) : sig val fold: ('a -> container -> 'a) -> 'a -> t -> 'a + (** Return one element of the given tree, or raise Not_found if the tree is + empty. Which element is chosen is unspecified, but equal elements will be + chosen for equal trees. *) + val choose: t -> container + (** Represent the content in dot syntax *) val repr: Format.formatter -> t -> unit -- cgit v1.2.3