#hash-map #scope #collection #lexical

hash-chain

A tiered hashmap and hashset implementation that allows for easily representing lexically scoped variables

11 unstable releases (3 breaking)

0.3.2 May 10, 2020
0.3.1 May 4, 2020
0.2.6 May 3, 2020
0.2.5 Feb 25, 2020
0.0.0 Nov 23, 2019

#2199 in Data structures

Download history 63/week @ 2024-03-11 90/week @ 2024-03-18 95/week @ 2024-03-25 150/week @ 2024-04-01 95/week @ 2024-04-08 63/week @ 2024-04-15 134/week @ 2024-04-22 85/week @ 2024-04-29 115/week @ 2024-05-06 58/week @ 2024-05-13 51/week @ 2024-05-20 40/week @ 2024-05-27 68/week @ 2024-06-03 53/week @ 2024-06-10 38/week @ 2024-06-17 52/week @ 2024-06-24

215 downloads per month
Used in 8 crates (3 directly)

MIT license

39KB
1K SLoC

Hash-Chain

hex characters in the shape of a chain

A tiered hashmap and hashset implementation that allows for easily representing lexically scoped variables.


const x = 0;
const y = 2;
function me() {
    let x = 1;
    console.log(x); //prints 1
    console.log(y); //prints 2
}
console.log(x) //prints 0

Dependencies

~210KB