containers
A modular, clean and powerful extension of the OCaml standard library
1024" x-on:close-sidebar="sidebar=window.innerWidth > 1024 && true">
package containers
-
containers
-
containers.data
-
containers.monomorphic
-
containers.sexp
-
containers.top
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Library containers
type 'a t = 'a list ref
val push : 'a t -> 'a -> unit
val pop : 'a t -> 'a option
val create : unit -> 'a t
Create a new list reference.
val clear : _ t -> unit
Remove all elements.
val lift : ( 'a list -> 'b ) -> 'a t -> 'b
Apply a list function to the content.
val 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.
ON THIS PAGE
No table of contents