Camlinternal...InfiniteArray(3)
💖 Camlinternal...InfiniteArray(3) 💖
okay so bestie, this page is from the OCaml library manual — manual name: OCaml library — and it’s all about CamlinternalMenhirLib.InfiniteArray. It’s giving “internal module but make it infinite” energy, and we’re gonna read every single line together 🫶✨
✨ NAME ✨
CamlinternalMenhirLib.InfiniteArray — no description. That’s it. The NAME section said “no description” and honestly? Minimalist icon behavior 💅
🌸 Module 🌸
Module CamlinternalMenhirLib.InfiniteArray — that’s the module path, exact, no cap. 🎀
📚 Documentation 📚
Module InfiniteArray
: sig end
This module implements infinite arrays. * — yes, the manual has a little * at the end; I’m keeping it because details are the moment. 💖
type 'a t— the type is literally'a t. Cute. Iconic. Infinite-array-coded. ✨val make : 'a -> 'a t—make xcreates an infinite array, where every slot containsx.*Obsessed: every slot. Not some slots. Every single one. 🌈val get : 'a t -> int -> 'a—get a ireturns the element contained at offsetiin the arraya. Slots are numbered0and up.*Zero-indexed besties, we love to see it. 👑val set : 'a t -> int -> 'a -> unit—set a i xsets the element contained at offsetiin the arrayatox. Slots are numbered0and up.*Same numbering, same energy. 🦋val extent : 'a t -> int—extent ais the length of an initial segment of the arrayathat is sufficiently large to contain allsetoperations ever performed. In other words, all elements beyond that segment have the default value.*Highkey important: “ever performed” is doing a lot of work there. 💀val domain : 'a t -> 'a array—domain ais a fresh copy of an initial segment of the arrayawhose length isextent a.*Fresh copy, fresh vibes. 🍓
That’s the whole page, bestie. Footer sign-off: OCamldoc — 2026-06-22. Bye, love u, read ur manual pages 💅✨🫶
📦 where this page comes from
- arch rolling: ocaml 5.5.0-1 · LGPL2.1 AND custom: QPL-1.0
- 💖 girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms