include module type of Stdlib.ArrayLabels

val find_opt : f:('a -> bool) -> 'a t -> 'a option
val equal : ('a -> 'a -> bool) -> 'a t -> 'a t -> bool
val map : 'a t -> f:('a -> 'b) -> 'b t
val exists : 'a t -> f:('a -> bool) -> bool
val fold_right : 'a t -> f:('a -> 'acc -> 'acc) -> init:'acc -> 'acc
val swap : 'a t -> int -> int -> unit

module Immutable : sig
  type 'a t

  val of_array_unsafe : 'a array -> 'a t
  val equal : ('a -> 'a -> bool) -> 'a t -> 'a t -> bool
  val get : 'a t -> int -> 'a
  val of_array : 'a array -> 'a t
  val to_list : 'a t -> 'a list
  val of_list : 'a list -> 'a t
  val map : 'a t -> f:('a -> 'b) -> 'b t
  val to_dyn : ('a -> Dyn.t) -> 'a t -> Dyn.t
  val fold_right : 'a t -> f:('a -> 'acc -> 'acc) -> init:'acc -> 'acc
  val exists : 'a t -> f:('a -> bool) -> bool
  val length : _ t -> int
  val to_list_map : 'a t -> f:('a -> 'b) -> 'b list
  val of_list_map : 'a list -> f:('a -> 'b) -> 'b t
end

module Sorted : sig
  module Make (Key : Map_intf.Key) : Array_intf.S with type Set.elt = Key.t
end
