Module CCList.Ref
val push : 'a t -> 'a -> unitpush rlist eadds an elementeat the head ofrlist.
val pop : 'a t -> 'a optionpop rlistremoves and returnsSome e(the first element ofrlist) orNoneif therlistis empty
val pop_exn : 'a t -> 'apop_exn rlistremoves and returns the first element ofrlist. Unsafe version ofpop.- raises Failure
if the list is empty.
val create : unit -> 'a tcreate ()creates a new empty reference list.
val clear : _ t -> unitclear rlistremoves all elements ofrlist.
val lift : ('a list -> 'b) -> 'a t -> 'blift f rlistapplies a list functionfto the content ofrlist.
val push_list : 'a t -> 'a list -> unitpush_list rlist ladds elements of the listlat the beginning of the list refrlist. Elements at the end of the listlwill be at the beginning of the list refrlist.