multi-containers: A few multimap variants.

[ bsd3, data-structures, library, program ] [ Propose Tags ]

A library that provides a few multimap variants.


[Skip to Readme]
Versions [faq] 0.1.0.0, 0.1.0.1, 0.1.0.2
Change log ChangeLog.md
Dependencies base (>=4.7 && <5), containers (>=0.5.10.2 && <0.7), directory (>=1.3.0.2 && <1.4), extra (>=1.6.9 && <1.7), filepath (>=1.4.1.2 && <1.5) [details]
License BSD-3-Clause
Copyright 2019 Ziyang Liu
Author Ziyang Liu <free@cofree.io>
Maintainer Ziyang Liu <free@cofree.io>
Category Data Structures
Home page https://github.com/zliu41/multi-containers#readme
Bug tracker https://github.com/zliu41/multi-containers/issues
Source repo head: git clone https://github.com/zliu41/multi-containers
Uploaded by zliu41 at Tue Apr 30 20:54:10 UTC 2019
Distributions NixOS:0.1.0.2
Executables test-gen
Downloads 305 total (53 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs available [build log]
Last success reported on 2019-04-30 [all 1 reports]

Modules

[Index] [Quick Jump]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees


Readme for multi-containers-0.1.0.2

[back to package description]

multi-containers

A library that provides three multimap variants:

  • Multimap k a, a multimap where values of each key form a list.
  • SetMultimap k a, a multimap where values of each key form a set.
  • Table r c a, a two dimensional table where values are indexed by row keys and column keys; it is essentially a multimap where values of each key form a map.

For Multimap and SetMultimap, there's always at least one value associated with each key in the multimap. Upon removing the last value of a key, the key itself is removed from the multimap.

For Table, similarly, each row key in a table always has at least one value. So does each column key.