#collections #hashmap #scope #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

#981 in Data structures

Download history 34/week @ 2022-11-27 41/week @ 2022-12-04 49/week @ 2022-12-11 31/week @ 2022-12-18 24/week @ 2022-12-25 17/week @ 2023-01-01 29/week @ 2023-01-08 25/week @ 2023-01-15 38/week @ 2023-01-22 50/week @ 2023-01-29 40/week @ 2023-02-05 49/week @ 2023-02-12 77/week @ 2023-02-19 34/week @ 2023-02-26 45/week @ 2023-03-05 25/week @ 2023-03-12

194 downloads per month
Used in 6 crates (2 directly)

MIT license

38KB
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