Module Stdcompat.StackSource

Sourcetype !'a t = 'a Stack.t
Sourceexception Empty

Alias for Stack.Empty

Sourceval drop : 'a t -> unit
  • since 5.1.0: val drop : 'a t -> unit
Sourceval to_seq : 'a t -> 'a Seq.t
Sourceval add_seq : 'a t -> 'a Seq.t -> unit
Sourceval of_seq : 'a Seq.t -> 'a t
Sourceval pop_opt : 'a t -> 'a option
  • since 4.08.0: val pop_opt : 'a t -> 'a option
Sourceval top_opt : 'a t -> 'a option
  • since 4.08.0: val top_opt : 'a t -> 'a option
Sourceval fold : ('b -> 'a -> 'b) -> 'b -> 'a t -> 'b
Sourceval create : unit -> 'a t

Alias for Stack.create

Sourceval push : 'a -> 'a t -> unit

Alias for Stack.push

Sourceval pop : 'a t -> 'a

Alias for Stack.pop

Sourceval top : 'a t -> 'a

Alias for Stack.top

Sourceval clear : 'a t -> unit

Alias for Stack.clear

Sourceval copy : 'a t -> 'a t

Alias for Stack.copy

Sourceval is_empty : 'a t -> bool

Alias for Stack.is_empty

Sourceval length : 'a t -> int

Alias for Stack.length

Sourceval iter : ('a -> unit) -> 'a t -> unit

Alias for Stack.iter