containers
A modular, clean and powerful extension of the OCaml standard library
1024" x-on:close-sidebar="sidebar=window.innerWidth > 1024 && true">
back to documentation root
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
Module
CCPair
Tuple Functions
val make : 'a -> 'b -> ( 'a, 'b ) t
Make a tuple from its components.
- since 0.16
Synonym to (***)
. Map on both sides of a tuple.
Like map
but specialized for pairs with elements of the same type.
f &&& g
is fun x -> f x, g x
. It splits the computations into two parts.
Synonym to merge
.
- since 0.3.3
dup_map f x = (x, f x)
. Duplicates the value and applies the function to the second copy.
- since 0.3.3
Print tuple in a string
- since 2.7
type 'a printer = Format.formatter -> 'a -> unit
ON THIS PAGE