package urn

  1. Overview
  2. Docs

Module type Urn.USource

Sourcetype weight
Sourcetype !+'a t
Sourceval singleton : weight -> 'a -> 'a t
Sourceval of_list : (weight * 'a) list -> 'a t option
Sourceval sample : 'a t -> 'a
Sourceval remove : 'a t -> (weight * 'a) * 'a t option
Sourceval add : weight -> 'a -> 'a t -> 'a t
Sourceval add_seq : (weight * 'a) Seq.t -> 'a t -> 'a t
Sourceval add_list : (weight * 'a) list -> 'a t -> 'a t
Sourceval update : (weight -> 'a -> weight * 'a) -> 'a t -> (weight * 'a) * (weight * 'a) * 'a t
Sourceval update_opt : (weight -> 'a -> (weight * 'a) option) -> 'a t -> (weight * 'a) * (weight * 'a) option * 'a t option
Sourceval replace : weight -> 'a -> 'a t -> (weight * 'a) * 'a t
Sourceval size : 'a t -> int
Sourceval weight : 'a t -> weight