mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2025-12-08 12:15:32 -05:00
Indent rose tree records.
This commit is contained in:
parent
84af4f6f2e
commit
f9d061af9e
1 changed files with 11 additions and 2 deletions
|
|
@ -49,9 +49,18 @@ let print formatter string_of_value tree =
|
|||
|
||||
module Zipper = struct
|
||||
|
||||
type 'a parent = { left_siblings: ('a tree) list; value: 'a; right_siblings: ('a tree) list }
|
||||
type 'a parent = {
|
||||
left_siblings: ('a tree) list ;
|
||||
value: 'a ;
|
||||
right_siblings: ('a tree) list ;
|
||||
}
|
||||
|
||||
type 'a t = { tree: 'a tree; lefts: ('a tree) list; rights: ('a tree) list; parents: ('a parent) list }
|
||||
type 'a t = {
|
||||
tree: 'a tree ;
|
||||
lefts: ('a tree) list ;
|
||||
rights: ('a tree) list ;
|
||||
parents: ('a parent) list ;
|
||||
}
|
||||
|
||||
let zipper tree = { tree = tree ; lefts = []; rights = []; parents = [] }
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue