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