package stdcompat

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Stdlib.StackSource

Sourcetype !'a t = 'a Stack.t
  • since 5.1.0: type !'a t
  • since 3.07.0: type !'a 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
  • since 5.1.0: val to_seq : 'a t -> 'a Seq.t
  • since 4.07.0: val to_seq : 'a t -> 'a Seq.t
Sourceval add_seq : 'a t -> 'a Seq.t -> unit
  • since 5.1.0: val add_seq : 'a t -> 'a Seq.t -> unit
  • since 4.07.0: val add_seq : 'a t -> 'a Seq.t -> unit
Sourceval of_seq : 'a Seq.t -> 'a t
  • since 5.1.0: val of_seq : 'a Seq.t -> 'a t
  • since 4.07.0: val 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
  • since 5.1.0: val fold : ('acc -> 'a -> 'acc) -> 'acc -> 'a t -> 'acc
  • since 4.03.0: val 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

OCaml

Innovation. Community. Security.