mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2025-12-06 03:05:28 -05:00
CCRAL: drop: Added test for bugfix.
This commit is contained in:
parent
5b6b71373c
commit
cfb8e55eba
1 changed files with 4 additions and 0 deletions
|
|
@ -342,6 +342,10 @@ and drop_tree_ ~size n t tail = match t with
|
|||
then drop_tree_ ~size:size' (n-1) l (append_tree_ r tail)
|
||||
else drop_tree_ ~size:size' (n-1-size') r tail
|
||||
|
||||
(*$T
|
||||
of_list [1;2;3] |> drop 2 |> length = 1
|
||||
*)
|
||||
|
||||
let drop_while ~f l =
|
||||
let rec aux p st = match st with
|
||||
| St_nil -> Nil
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue