mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2025-12-06 03:05:28 -05:00
fix: CCRAL.remove does not remove
This commit is contained in:
parent
b19cd0db5f
commit
0ab8597b78
1 changed files with 1 additions and 1 deletions
|
|
@ -116,7 +116,7 @@ let front_exn l = match l with
|
|||
let rec _remove prefix l i =
|
||||
let x, l' = front_exn l in
|
||||
if i=0
|
||||
then List.fold_left (fun l x -> cons x l) l prefix
|
||||
then List.fold_left (fun l x -> cons x l) l' prefix
|
||||
else _remove (x::prefix) l' (i-1)
|
||||
|
||||
let remove l i = _remove [] l i
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue