| Crates.io | hamt |
| lib.rs | hamt |
| version | 0.2.0 |
| created_at | 2015-10-10 00:35:28.790136+00 |
| updated_at | 2016-02-18 04:02:12.284393+00 |
| description | Purely functional hash array mapped tries. |
| homepage | https://github.com/rainbowbismuth/hamt-rs |
| repository | https://github.com/rainbowbismuth/hamt-rs |
| max_upload_size | |
| id | 3188 |
| size | 46,300 |
:construction: This library is under construction! :construction:
An implementation of a persistent hash array mapped trie in Rust, based on those found in the unordered-containers Haskell library.
There are four versions of the data structure, HamtRc which is limited to a single thread, and HamtArc which can be freely shared. As well as set versions, HamtSetRc and HamtSetArc.
extern crate hamt;
use hamt::HamtRc;
let hamt = HamtRc::<isize,isize>::new().insert(&0, &1).insert(&1, &10).insert(&2, &100);
assert!(hamt.get(&1) == Option::Some(&10));
Unknown :space_invader:.