mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2025-12-05 19:00:31 -05:00
8 lines
242 B
OCaml
8 lines
242 B
OCaml
module Vec = CCVector
|
|
|
|
let () =
|
|
let arr : Int32.t Vec.vector = Vec.create () in
|
|
Vec.push arr (Int32.of_int 123456);
|
|
Format.printf "%d\n" (Int32.to_int (Vec.get arr 0));
|
|
let x = Vec.get arr 0 in
|
|
Format.printf "%d\n" (Int32.to_int x)
|