summaryrefslogtreecommitdiff
path: root/src/vytree.mli
blob: 9b91c80996197415958cdd1c823917606bf261a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
type 'a t

exception Empty_path
exception Duplicate_child
exception Nonexistent_path

val make : string -> 'a -> 'a t
val make_full : string -> 'a -> ('a t) list -> 'a t

val name_of_node : 'a t -> string
val data_of_node : 'a t -> 'a
val children_of_node : 'a t -> 'a t list

val insert : 'a -> 'a t -> string list -> 'a -> 'a t

val delete : 'a t -> string list -> 'a t

val list_children : 'a t -> string list

val get : 'a t -> string list -> 'a t