mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2025-12-07 03:35:30 -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)
|
k i (Array.unsafe_get v.vec i)
|
||||||
done
|
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 =
|
let map f v =
|
||||||
if _empty_array v
|
if _empty_array v
|
||||||
then create ()
|
then create ()
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue