`sig
exception Empty_list
type 'a t = 'a BatRefList.t
val empty : unit -> 'a t
val is_empty : 'a t -> bool
val clear : 'a t -> unit
val length : 'a t -> int
val copy : dst:'a t -> src:'a t -> unit
val copy_list : dst:'a t -> src:'a list -> unit
val copy_enum : dst:'a t -> src:'a BatEnum.t -> unit
val of_list : 'a list -> 'a t
val to_list : 'a t -> 'a list
val of_enum : 'a BatEnum.t -> 'a t
val enum : 'a t -> 'a BatEnum.t
val of_backwards : 'a BatEnum.t -> 'a t
val backwards : 'a t -> 'a BatEnum.t
val add : 'a t -> 'a -> unit
val push : 'a t -> 'a -> unit
val add_sort : cmp:('a -> 'a -> int) -> 'a t -> 'a -> unit
val first : 'a t -> 'a
val last : 'a t -> 'a
val pop : 'a t -> 'a
val npop : 'a t -> int -> 'a list
val hd : 'a t -> 'a
val tl : 'a t -> 'a t
val rev : 'a t -> unit
val fold_left : ('a -> 'b -> 'a) -> 'a -> 'b t -> 'a
val fold_right : ('a -> 'b -> 'b) -> 'a t -> 'b -> 'b
val iter : ('a -> unit) -> 'a t -> unit
val find : ('a -> bool) -> 'a t -> 'a
val rfind : ('a -> bool) -> 'a t -> 'a
val find_exc : ('a -> bool) -> exn -> 'a t -> 'a
val exists : ('a -> bool) -> 'a t -> bool
val for_all : ('a -> bool) -> 'a t -> bool
val map : ('a -> 'b) -> 'a t -> 'b t
val transform : ('a -> 'a) -> 'a t -> unit
val map_list : ('a -> 'b) -> 'a t -> 'b list
val sort : cmp:('a -> 'a -> int) -> 'a t -> unit
val filter : ('a -> bool) -> 'a t -> unit
val remove : 'a t -> 'a -> unit
val remove_if : ('a -> bool) -> 'a t -> unit
val remove_all : 'a t -> 'a -> unit
module Index :
sig
val index_of : 'a t -> 'a -> int
val index : ('a -> bool) -> 'a t -> int
val at_index : 'a t -> int -> 'a
val set : 'a t -> int -> 'a -> unit
val remove_at : 'a t -> int -> unit
end
end`