package union-find-lattice

  1. Overview
  2. Docs
Persistent union-find data-structures with lattice operations (order, meet, join)

Install

dune-project
 Dependency

Authors

Maintainers

Sources

union-find-lattice-0.1.0.tbz
sha256=ecaf1444cd0e9d21174d854da0d2eea56d685180cc1e098016e2c66bc809f8ab
sha512=f12612357504879f78094ffa623bf44ec87c7f7adeeea1809c0b74fdf41e51a88958634d51d3f8bd8881c577a635ef81beaff91d0361195f9a65a5724ce096a9

doc/union-find-lattice.utils/Utils/Functions/index.html

Module Utils.FunctionsSource

Sourceval hash_pair : int -> int -> int

hash_pair x y returns a decent hash for the pair (x,y).

Sourceval pp_option : (Format.formatter -> 'a -> unit) -> Format.formatter -> 'a option -> unit

pp_option pp_some fmt opt prints pp_some fmt x when opt is Some x and "None" otherwise. This is a far more reasonable default than Format.pp_print_option.

Sourceval range_fold : (int -> 'a -> 'a) -> int -> 'a -> 'a

range_fold f n init is f 0 init |> f 1 |> ... |> f n

Sourceval list_of_hashtbl_keys : 'a PersistentArray.IntHashtable.t -> int list

returns the list of keys present in the hashtable