mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2025-12-05 19:00:31 -05:00
add regression test for #364
This commit is contained in:
parent
5611cbf7f3
commit
b19cd0db5f
1 changed files with 4 additions and 0 deletions
|
|
@ -121,6 +121,10 @@ let rec _remove prefix l i =
|
|||
|
||||
let remove l i = _remove [] l i
|
||||
|
||||
(*$= & ~printer:Q.Print.(list int)
|
||||
[1;2;4] (to_list @@ remove (of_list [1;2;3;4]) 2)
|
||||
*)
|
||||
|
||||
let rec _map_tree f t = match t with
|
||||
| Leaf x -> Leaf (f x)
|
||||
| Node (x, l, r) -> Node (f x, _map_tree f l, _map_tree f r)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue