package ringo

  1. Overview
  2. Docs
Ring data-structure and derived data-structures

Install

Dune Dependency

Authors

Maintainers

Sources

ringo-v0.1.tar.gz
md5=1af1ad517c342dfe49d19b4e4c404183
sha512=647f2119f65a4e983ff06645728acad91895729dba0c933ca207e464134bc5dfffa2ad26f505e8b67ccc91f42db6dfdcfc1f8c08ba27343bb0870278d9859f96

Description

Published: 06 Nov 2019

README

Ringo

Ring (bounded-size data collection with first-added first-thrown-away policy) and derived data-structure

Ring

A ring is a data-structure ('a Ring.t) holding elements of a given type ('a). Elements can be added to it (Ring.add ring v). Only a bounded number of elements are held (set when initialising an empty ring with Ring.create bound). When the ring is full, adding a new element discards the oldest element.

Ring.MakeTable

A ring-table is a table-like (Hashtbl-like) data-structure that only retains a bounded number of elements.

WeakRingTable.Make

A weak-ring-table is a ring-table-like data-structure that is sloppy in counting elements: it occasionally contains more elements than the bound (although supernumerary elements are only weakly held and can be collected by the GC) and might contain less.

Dependencies (2)

  1. dune >= "1.7"
  2. ocaml >= "4.05" & < "5.0"

Dev Dependencies

None

Used by

None

Conflicts

None

OCaml

Innovation. Community. Security.