sig
  type 'a t = 'a list
  val mem : ?equal:('-> '-> bool) -> 'a t -> '-> bool
  val length : 'a t -> int
  val is_empty : 'a t -> bool
  val iter : 'a t -> f:('-> unit) -> unit
  val fold : 'a t -> init:'accum -> f:('accum -> '-> 'accum) -> 'accum
  val exists : 'a t -> f:('-> bool) -> bool
  val for_all : 'a t -> f:('-> bool) -> bool
  val find : 'a t -> f:('-> bool) -> 'a option
  val find_map : 'a t -> f:('-> 'b option) -> 'b option
  val to_list : 'a t -> 'a t
  val to_array : 'a t -> 'a array
  val ( >>= ) : 'a t -> ('-> 'b t) -> 'b t
  val ( >>| ) : 'a t -> ('-> 'b) -> 'b t
  module Monad_infix :
    sig
      val ( >>= ) : 'a t -> ('-> 'b t) -> 'b t
      val ( >>| ) : 'a t -> ('-> 'b) -> 'b t
    end
  val bind : 'a t -> ('-> 'b t) -> 'b t
  val return : '-> 'a t
  val join : 'a t t -> 'a t
  val ignore : 'a t -> unit t
  val all : 'a t t -> 'a t t
  val all_ignore : unit t t -> unit t
  val nth : 'a t -> int -> 'a option
  val nth_exn : 'a t -> int -> 'a
  val rev : 'a t -> 'a t
  val rev_append : 'a t -> 'a t -> 'a t
  val unordered_append : 'a t -> 'a t -> 'a t
  val rev_map : 'a t -> f:('-> 'b) -> 'b t
  val fold_left : 'a t -> init:'-> f:('-> '-> 'b) -> 'b
  val iter2_exn : 'a t -> 'b t -> f:('-> '-> unit) -> unit
  val rev_map2_exn : 'a t -> 'b t -> f:('-> '-> 'c) -> 'c t
  val fold2_exn : 'a t -> 'b t -> init:'-> f:('-> '-> '-> 'c) -> 'c
  val for_all2_exn : 'a t -> 'b t -> f:('-> '-> bool) -> bool
  val exists2_exn : 'a t -> 'b t -> f:('-> '-> bool) -> bool
  val filter : 'a t -> f:('-> bool) -> 'a t
  val rev_filter : 'a t -> f:('-> bool) -> 'a t
  val filteri : 'a t -> f:(int -> '-> bool) -> 'a t
  val partition_map :
    'a t -> f:('-> [ `Fst of '| `Snd of 'c ]) -> 'b t * 'c t
  val partition_tf : 'a t -> f:('-> bool) -> 'a t * 'a t
  val split_n : 'a t -> int -> 'a t * 'a t
  val sort : cmp:('-> '-> int) -> 'a t -> 'a t
  val stable_sort : cmp:('-> '-> int) -> 'a t -> 'a t
  val merge : 'a t -> 'a t -> cmp:('-> '-> int) -> 'a t
  val hd : 'a t -> 'a option
  val tl : 'a t -> 'a t option
  val hd_exn : 'a t -> 'a
  val tl_exn : 'a t -> 'a t
  val findi : 'a t -> f:(int -> '-> bool) -> (int * 'a) option
  val find_exn : 'a t -> f:('-> bool) -> 'a
  val append : 'a t -> 'a t -> 'a t
  val map : 'a t -> f:('-> 'b) -> 'b t
  val concat_map : 'a t -> f:('-> 'b t) -> 'b t
  val concat_mapi : 'a t -> f:(int -> '-> 'b t) -> 'b t
  val map2_exn : 'a t -> 'b t -> f:('-> '-> 'c) -> 'c t
  val rev_map3_exn : 'a t -> 'b t -> 'c t -> f:('-> '-> '-> 'd) -> 'd t
  val map3_exn : 'a t -> 'b t -> 'c t -> f:('-> '-> '-> 'd) -> 'd t
  val rev_map_append : 'a t -> 'b t -> f:('-> 'b) -> 'b t
  val fold_right : 'a t -> f:('-> '-> 'b) -> init:'-> 'b
  val unzip : ('a * 'b) t -> 'a t * 'b t
  val zip : 'a t -> 'b t -> ('a * 'b) t option
  val zip_exn : 'a t -> 'b t -> ('a * 'b) t
  val mapi : 'a t -> f:(int -> '-> 'b) -> 'b t
  val rev_mapi : 'a t -> f:(int -> '-> 'b) -> 'b t
  val iteri : 'a t -> f:(int -> '-> unit) -> unit
  val foldi : 'a t -> f:(int -> '-> '-> 'b) -> init:'-> 'b
  val reduce_exn : 'a t -> f:('-> '-> 'a) -> 'a
  val reduce : 'a t -> f:('-> '-> 'a) -> 'a option
  val group : 'a t -> break:('-> '-> bool) -> 'a t t
  val groupi : 'a t -> break:(int -> '-> '-> bool) -> 'a t t
  val last : 'a t -> 'a option
  val last_exn : 'a t -> 'a
  val remove_consecutive_duplicates :
    'a t -> equal:('-> '-> bool) -> 'a t
  val dedup : ?compare:('-> '-> int) -> 'a t -> 'a t
  val contains_dup : ?compare:('-> '-> int) -> 'a t -> bool
  val find_a_dup : ?compare:('-> '-> int) -> 'a t -> 'a option
  exception Duplicate_found of (unit -> Sexplib.Sexp.t) * string
  val exn_if_dup :
    ?compare:('-> '-> int) ->
    ?context:string -> 'a t -> to_sexp:('-> Sexplib.Sexp.t) -> unit
  val count : 'a t -> f:('-> bool) -> int
  val range :
    ?stride:int ->
    ?start:[ `exclusive | `inclusive ] ->
    ?stop:[ `exclusive | `inclusive ] -> int -> int -> int t
  val init : int -> f:(int -> 'a) -> 'a t
  val rev_filter_map : 'a t -> f:('-> 'b option) -> 'b t
  val rev_filter_mapi : 'a t -> f:(int -> '-> 'b option) -> 'b t
  val filter_map : 'a t -> f:('-> 'b option) -> 'b t
  val filter_mapi : 'a t -> f:(int -> '-> 'b option) -> 'b t
  val filter_opt : 'a option t -> 'a t
  module Assoc :
    sig
      type ('a, 'b) t = ('a * 'b) t
      val add :
        ('a, 'b) t -> ?equal:('-> '-> bool) -> '-> '-> ('a, 'b) t
      val find : ('a, 'b) t -> ?equal:('-> '-> bool) -> '-> 'b option
      val find_exn : ('a, 'b) t -> ?equal:('-> '-> bool) -> '-> 'b
      val mem : ('a, 'b) t -> ?equal:('-> '-> bool) -> '-> bool
      val remove :
        ('a, 'b) t -> ?equal:('-> '-> bool) -> '-> ('a, 'b) t
      val map : ('a, 'b) t -> f:('-> 'c) -> ('a, 'c) t
      val inverse : ('a, 'b) t -> ('b, 'a) t
      val t_of_sexp :
        (Sexplib.Sexp.t -> 'a) ->
        (Sexplib.Sexp.t -> 'b) -> Sexplib.Sexp.t -> ('a, 'b) t
      val sexp_of_t :
        ('-> Sexplib.Sexp.t) ->
        ('-> Sexplib.Sexp.t) -> ('a, 'b) t -> Sexplib.Sexp.t
    end
  val sub : 'a t -> pos:int -> len:int -> 'a t
  val slice : 'a t -> int -> int -> 'a t
  val take : 'a t -> int -> 'a t
  val drop : 'a t -> int -> 'a t
  val take_while : 'a t -> f:('-> bool) -> 'a t
  val drop_while : 'a t -> f:('-> bool) -> 'a t
  val split_while : 'a t -> f:('-> bool) -> 'a t * 'a t
  val concat : 'a t t -> 'a t
  val concat_no_order : 'a t t -> 'a t
  val cons : '-> 'a t -> 'a t
  val cartesian_product : 'a t -> 'b t -> ('a * 'b) t
  val to_string : f:('-> string) -> 'a t -> string
  val permute : ?random_state:Random.State.t -> 'a t -> 'a t
  val is_sorted : 'a t -> compare:('-> '-> int) -> bool
  val compare : 'a t -> 'a t -> cmp:('-> '-> int) -> int
  val equal : 'a t -> 'a t -> equal:('-> '-> bool) -> bool
  module Infix : sig val ( @ ) : 'a t -> 'a t -> 'a t end
  val transpose : 'a t t -> 'a t t option
  val transpose_exn : 'a t t -> 'a t t
  val intersperse : 'a t -> sep:'-> 'a t
  val t_of_sexp : (Sexplib.Sexp.t -> 'a) -> Sexplib.Sexp.t -> 'a t
  val sexp_of_t : ('-> Sexplib.Sexp.t) -> 'a t -> Sexplib.Sexp.t
  val bin_t : 'Bin_prot.Type_class.t -> 'a t Bin_prot.Type_class.t
  val bin_read_t :
    'Bin_prot.Unsafe_read_c.reader -> 'a t Bin_prot.Read_ml.reader
  val bin_read_t_ :
    'Bin_prot.Unsafe_read_c.reader -> 'a t Bin_prot.Unsafe_read_c.reader
  val bin_read_t__ :
    'Bin_prot.Unsafe_read_c.reader ->
    (int -> 'a t) Bin_prot.Unsafe_read_c.reader
  val bin_reader_t :
    'Bin_prot.Type_class.reader -> 'a t Bin_prot.Type_class.reader
  val bin_size_t : 'Bin_prot.Size.sizer -> 'a t Bin_prot.Size.sizer
  val bin_write_t :
    'Bin_prot.Unsafe_write_c.writer -> 'a t Bin_prot.Write_ml.writer
  val bin_write_t_ :
    'Bin_prot.Unsafe_write_c.writer -> 'a t Bin_prot.Unsafe_write_c.writer
  val bin_writer_t :
    'Bin_prot.Type_class.writer -> 'a t Bin_prot.Type_class.writer
  val stable_dedup : 'a list -> 'a list
  val stable_dedup_staged :
    compare:('-> '-> int) -> ('a list -> 'a list) Staged.t
end