mirror of
https://github.com/c-cube/nanoev.git
synced 2025-12-05 19:00:35 -05:00
format
This commit is contained in:
parent
6e2d11384b
commit
90311ad4fa
2 changed files with 8 additions and 8 deletions
|
|
@ -22,10 +22,10 @@ open struct
|
|||
| E -> 0
|
||||
| N (r, _, _, _) -> r
|
||||
|
||||
(** Make a balanced node labelled with [x], and subtrees [a] and [b].
|
||||
We ensure that the right child's rank is ≤ to the rank of the
|
||||
left child (leftist property). The rank of the resulting node
|
||||
is the length of the rightmost path. *)
|
||||
(** Make a balanced node labelled with [x], and subtrees [a] and [b]. We
|
||||
ensure that the right child's rank is ≤ to the rank of the left child
|
||||
(leftist property). The rank of the resulting node is the length of the
|
||||
rightmost path. *)
|
||||
let[@inline] mk_node_ x a b =
|
||||
if rank_ a >= rank_ b then
|
||||
N (rank_ b + 1, x, a, b)
|
||||
|
|
|
|||
|
|
@ -22,10 +22,10 @@ open struct
|
|||
| E -> 0
|
||||
| N (r, _, _, _) -> r
|
||||
|
||||
(** Make a balanced node labelled with [x], and subtrees [a] and [b].
|
||||
We ensure that the right child's rank is ≤ to the rank of the
|
||||
left child (leftist property). The rank of the resulting node
|
||||
is the length of the rightmost path. *)
|
||||
(** Make a balanced node labelled with [x], and subtrees [a] and [b]. We
|
||||
ensure that the right child's rank is ≤ to the rank of the left child
|
||||
(leftist property). The rank of the resulting node is the length of the
|
||||
rightmost path. *)
|
||||
let[@inline] mk_node_ x a b =
|
||||
if rank_ a >= rank_ b then
|
||||
N (rank_ b + 1, x, a, b)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue