mds

module
v0.22.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 22, 2024 License: BSD-3-Clause

README

mds

GoDoc CI

This repository defines generic data structures in Go.

Data Structures

Most of the types in this module share common behaviors:

  • A Clear method that discards all the contents of the container.
  • A Peek method that returns an order statistic of the container.
  • An Each method that iterates the container in its natural order (usable as a range function).
  • An IsEmpty method that reports whether the container is empty.
  • A Len method that reports the number of elements in the container.
Packages

Utilities

Directories

Path Synopsis
Package cache implements a keyed cache for arbitrary values.
Package cache implements a keyed cache for arbitrary values.
internal/cachetest
Package cachetest implements a test harness for cache implementations.
Package cachetest implements a test harness for cache implementations.
Package compare contains support functions for comparison of values.
Package compare contains support functions for comparison of values.
Package distinct implements the probabilistic distinct-elements counter algorithm of Chakraborty, Vinodchandran, and Meel as described in the paper "Distinct Elements in Streams" ([CVM]).
Package distinct implements the probabilistic distinct-elements counter algorithm of Chakraborty, Vinodchandran, and Meel as described in the paper "Distinct Elements in Streams" ([CVM]).
Package heapq implements a generic heap-structured priority queue.
Package heapq implements a generic heap-structured priority queue.
internal
mdtest
Package mdtest includes some internal utilities for testing.
Package mdtest includes some internal utilities for testing.
Package mapset implements a basic set type using a built-in map.
Package mapset implements a basic set type using a built-in map.
Package mbits provides functions for manipulating bits and bytes.
Package mbits provides functions for manipulating bits and bytes.
Package mdiff supports creating textual diffs.
Package mdiff supports creating textual diffs.
Package mlink implements basic linked container data structures.
Package mlink implements basic linked container data structures.
Package mstr defines utility functions for strings.
Package mstr defines utility functions for strings.
Package mtest is a support library for writing tests.
Package mtest is a support library for writing tests.
Package omap implements a map-like collection on ordered keys.
Package omap implements a map-like collection on ordered keys.
Package queue implements an array-based FIFO queue.
Package queue implements an array-based FIFO queue.
Package ring implements a doubly-linked circular chain of data items, called a "ring".
Package ring implements a doubly-linked circular chain of data items, called a "ring".
Package shell supports splitting and joining of shell command strings.
Package shell supports splitting and joining of shell command strings.
Package slice implements some useful functions for slices.
Package slice implements some useful functions for slices.
Package stack implements an array-based LIFO stack.
Package stack implements an array-based LIFO stack.
Package stree implements the Scapegoat Tree, an approximately-balanced binary search tree.
Package stree implements the Scapegoat Tree, an approximately-balanced binary search tree.
Package value defines adapters for value types.
Package value defines adapters for value types.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL