From 058a1e2e10563b439d8fe42d26c46a918eb4d7f2 Mon Sep 17 00:00:00 2001 From: Daniil Baturin Date: Thu, 5 Jan 2017 00:51:11 +0700 Subject: Expose the Vytree.adopt function in the module interface. This is useful in the parser and possibly other code that creates nodes from scratch. --- src/vytree.mli | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/vytree.mli b/src/vytree.mli index 83a6096..6de65c5 100644 --- a/src/vytree.mli +++ b/src/vytree.mli @@ -17,6 +17,8 @@ val children_of_node : 'a t -> 'a t list val find : 'a t -> string -> 'a t option val find_or_fail : 'a t -> string -> 'a t +val adopt : 'a t -> 'a t -> 'a t + val insert : ?position:position -> 'a t -> string list -> 'a -> 'a t val insert_multi_level : 'a -> 'a t -> string list -> string list -> 'a -> 'a t -- cgit v1.2.3