Support.Stackinclude module type of Stdlib.Stackval create : unit -> 'a tval push : 'a -> 'a t -> unitval pop : 'a t -> 'aval pop_opt : 'a t -> 'a optionval top : 'a t -> 'aval top_opt : 'a t -> 'a optionval clear : 'a t -> unitval is_empty : 'a t -> boolval length : 'a t -> intval iter : ('a -> unit) -> 'a t -> unitval fold : ('b -> 'a -> 'b) -> 'b -> 'a t -> 'bval to_seq : 'a t -> 'a Stdlib.Seq.tval add_seq : 'a t -> 'a Stdlib.Seq.t -> unitval of_seq : 'a Stdlib.Seq.t -> 'a tval to_list : 'a t -> 'a listto_list s converts s into a list, where the top element of s is the last element of the output list.
val to_list_rev : 'a t -> 'a listto_list_rev s converts s into a list, where the top element of s is the first element of the list.