#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

#2072 in Data structures

Download history 28/week @ 2023-12-04 96/week @ 2023-12-11 57/week @ 2023-12-18 58/week @ 2023-12-25 44/week @ 2024-01-01 74/week @ 2024-01-08 290/week @ 2024-01-15 73/week @ 2024-01-22 34/week @ 2024-01-29 19/week @ 2024-02-05 33/week @ 2024-02-12 100/week @ 2024-02-19 71/week @ 2024-02-26 86/week @ 2024-03-04 63/week @ 2024-03-11 90/week @ 2024-03-18

318 downloads per month
Used in 9 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