Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jmitchell/multiset

Multiset/bag implementation in Rust
https://github.com/jmitchell/multiset

Last synced: about 2 months ago
JSON representation

Multiset/bag implementation in Rust

Awesome Lists containing this project

README

        

# Multiset [![Crates.io](https://img.shields.io/crates/v/multiset.svg?maxAge=86400)](https://crates.io/crates/multiset) [![Docs](https://docs.rs/multiset/badge.svg)](https://docs.rs/multiset) [![Build Status](https://travis-ci.org/jmitchell/multiset.svg?branch=master)](https://travis-ci.org/jmitchell/multiset)

A multiset is an unordered collection of values. They are also known as bags.

Unlike sets where each value is either included or not, multisets permit duplicates. Consequently, they're useful for maintaining a count of distinct values.

See the documentation of [HashMultiSet](https://docs.rs/multiset/0.0.5/multiset/struct.HashMultiSet.html) for examples.

## License

Licensed under either of

* Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)
* MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)

at your option.

### Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted
for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any
additional terms or conditions.