summaryrefslogtreecommitdiff
path: root/src/vytree.ml
diff options
context:
space:
mode:
Diffstat (limited to 'src/vytree.ml')
-rw-r--r--src/vytree.ml4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/vytree.ml b/src/vytree.ml
index 38f7570..0e379ee 100644
--- a/src/vytree.ml
+++ b/src/vytree.ml
@@ -123,3 +123,7 @@ let get_existent_path node path =
| None -> acc
| Some c -> aux c names (name :: acc)
in List.rev (aux node path [])
+
+let children_of_path node path =
+ let node' = get node path in
+ list_children node'