BatRefList

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