Belt_MutableStackFirst in last out stack.
This module implements stacks, with in-place modification.
val make : unit -> 'a tval clear : 'a t -> unitDiscard all elements from the stack.
val push : 'a t -> 'a -> unitval popUndefined : 'a t -> 'a Js.undefinedval pop : 'a t -> 'a optionval topUndefined : 'a t -> 'a Js.undefinedval top : 'a t -> 'a optionval isEmpty : 'a t -> boolval size : 'a t -> intval forEachU : 'a t -> ('a -> unit) Js.Fn.arity1 -> unitval forEach : 'a t -> ('a -> unit) -> unitval dynamicPopIterU : 'a t -> ('a -> unit) Js.Fn.arity1 -> unitval dynamicPopIter : 'a t -> ('a -> unit) -> unitdynamicPopIter s f apply f to each element of s. The item is poped before applying f, s will be empty after this opeartion. This function is useful for worklist algorithm