Misc.Stdlib.Array(3)
π Misc.Stdlib.Array(3) π
okay so bestie, welcome to the OCaml library manual β this page is all about Misc.Stdlib.Array, and yes it's exactly what it sounds like: lil' extras bolted onto the Array module. no cap, it's short, it's sweet, and you're gonna get it in like thirty seconds. π«Ά
β¨ NAME β¨
Misc.Stdlib.Array β Extensions to the Array module π
π¦ Module π¦
Module Misc.Stdlib.Array
like, that's the whole module path. she's a module. she lives there. periodt. π
πΈ Documentation πΈ
Module Array
: sig end
(it's a signature, it ends, that's the vibe β¨)
π Extensions to the Array module π
β val exists2 : ('a -> 'b -> bool) -> 'a array -> 'b array -> bool
Same as Array.exists2 from the standard library. literally identical behaviour, just chillin' here in Misc.Stdlib.Array. no extra lore, iykyk. π₯
π§ val for_alli : (int -> 'a -> bool) -> 'a array -> bool
Same as Array.for_all from the standard library β but plot twist, bestie: the function gets the index of the element as its first argument, and the element itself as its second argument. that's the whole i situation, it's giving indexed realness. π
π val all_somes : 'a option array -> 'a array option
that's the signature, character for character. go off, option array to array option icon. π
fr fr that's the entire page β three lil' additions and we're done. nothing hidden, nothing skipped, we keep every detail around here. π
cute lil sign-off: this page was brought to you by OCamldoc, dated 2026-06-22, and it's the Misc.Stdlib.Array(3) page in the OCaml library manual. mwah, go write some arrays bestie πππ
π¦ 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