mte/unikernel/duniverse/ocaml-re/lib/dense_map.ml

5 lines
79 B
OCaml
Raw Normal View History

2025-11-11 02:07:51 +01:00
let make ~size ~f =
let cache = Array.init size f in
fun i -> cache.(i)
;;