5 ms·
And with a little work you can even use them to map ranges of keys to values in a way that's reminiscent of interval trees — e.g. https://crates.io/crates/range
by jeffparsons 11mo ago
And with a little work you can even use them to map ranges of keys to values in a way that's reminiscent of interval trees — e.g. https://crates.io/crates/rangemap https://crates.io/crates/rangemap. (Disclosure: that's my crate.)