mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2025-12-06 03:05:28 -05:00
test ccvector.iteri
This commit is contained in:
parent
3d9a7a0b74
commit
f2890c56a6
1 changed files with 5 additions and 0 deletions
|
|
@ -296,6 +296,11 @@ let iteri k v =
|
|||
k i (Array.unsafe_get v.vec i)
|
||||
done
|
||||
|
||||
(*$T
|
||||
let v = (0--6) in \
|
||||
iteri (fun i x -> if i = 3 then remove v i) v; length v = 6
|
||||
*)
|
||||
|
||||
let map f v =
|
||||
if _empty_array v
|
||||
then create ()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue