package containers

  1. Overview
  2. Docs
A modular, clean and powerful extension of the OCaml standard library

Install

dune-project
 Dependency

Authors

Maintainers

Sources

v2.8.1.tar.gz
md5=d84e09c5d0abc501aa17cd502e31a038
sha512=8b832f4ada6035e80d81be0cfb7bdffb695ec67d465ed6097a144019e2b8a8f909095e78019c3da2d8181cc3cd730cd48f7519e87d3162442562103b7f36aabb

doc/containers/CCListLabels/Ref/index.html

Module CCListLabels.RefSource

Sourcetype 'a t = 'a list ref
Sourceval push : 'a t -> 'a -> unit
Sourceval pop : 'a t -> 'a option
Sourceval pop_exn : 'a t -> 'a

Unsafe version of pop.

  • raises Failure

    if the list is empty.

Sourceval create : unit -> 'a t

Create a new list reference.

Sourceval clear : _ t -> unit

Remove all elements.

Sourceval lift : ('a list -> 'b) -> 'a t -> 'b

Apply a list function to the content.

Sourceval push_list : 'a t -> 'a list -> unit

Add elements of the list at the beginning of the list ref. Elements at the end of the list will be at the beginning of the list ref.