package containers

  1. Overview
  2. Docs
On This Page
  1. Polymorphic Maps
Legend:
Library
Module
Module type
Parameter
Class
Class type

Polymorphic Maps

type ('a, 'b) t
val get : ('a, 'b) t -> 'a -> 'b option
val get_exn : ('a, 'b) t -> 'a -> 'b

Unsafe version of get.

  • raises Not_found

    if the element is not present

val size : (_, _) t -> int
val to_seq : ('a, 'b) t -> ('a * 'b) sequence
val to_list : ('a, 'b) t -> ('a * 'b) list
val to_coll : ('a, 'b) t -> ('a * 'b) collection
OCaml

Innovation. Community. Security.