prbnmcn-stats
Basic statistics
1024" x-on:close-sidebar="sidebar=window.innerWidth > 1024 && true">
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Parameters
module Elt : Basic_structures.Basic_intf.Ordered
Signature
type elt = Elt.t
The type of elements in bijection with {0; ..; n-1}
.
of_list l
Constructs a bijection between l and {0; ...; n-1}
. The bijection is constructed by assigning to the elements l0, l1, ..., ln-1 the indices {0; 1; ...; n-1}
.
Returns the index of a given element. This is O(log2(n)) for a set with n
elements when using the map-based implementation.
val support : t -> int
Returns the size of domain of the bijection.