package hector

  1. Overview
  2. Docs

Module Poly.StackSource

This module offers the same API as the standard library module Stdlib.Stack, but is implemented using vectors.

Sourcetype 'a t = 'a vector
Sourceexception Empty
Sourceval create : unit -> 'a t
Sourceval push : 'a -> 'a t -> unit
Sourceval pop : 'a t -> 'a
Sourceval pop_opt : 'a t -> 'a option
Sourceval drop : 'a t -> unit
Sourceval top : 'a t -> 'a
Sourceval top_opt : 'a t -> 'a option
Sourceval clear : 'a t -> unit
Sourceval copy : 'a t -> 'a t
Sourceval is_empty : 'a t -> bool
Sourceval length : 'a t -> int
Sourceval iter : ('a -> unit) -> 'a t -> unit
Sourceval fold : ('s -> 'a -> 's) -> 's -> 'a t -> 's
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
OCaml

Innovation. Community. Security.