This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
A map class, implemented with private slots, which has the following properties: | |
- The presence of a mapping k => v in a SlotMap does not by itself make k or v reachable | |
- For each mapping k => v in a SlotMap m (whether m is reachable or not), if k is reachable then v is reachable | |
*/ | |
const DELETED = {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hex_values = ['626f6f74', '72616365', '626c6168', '6f6f7073'] | |
packed_list = hex_values.map { |item| [item].pack('H*') }.sort().join() |
OlderNewer