{"id":13803848,"url":"https://github.com/Shambles-Dev/AutoHotkey-HashTable","last_synced_at":"2025-05-13T16:32:39.884Z","repository":{"id":87091786,"uuid":"53643801","full_name":"Shambles-Dev/AutoHotkey-HashTable","owner":"Shambles-Dev","description":"A Hash Table Implementation for AutoHotkey","archived":false,"fork":false,"pushed_at":"2021-11-26T15:24:39.000Z","size":6,"stargazers_count":9,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-11-18T20:49:11.870Z","etag":null,"topics":["ahk","autohotkey","hash-tables"],"latest_commit_sha":null,"homepage":null,"language":"AutoHotkey","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Shambles-Dev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-03-11T06:03:53.000Z","updated_at":"2024-04-22T15:16:03.000Z","dependencies_parsed_at":"2023-03-13T19:47:51.489Z","dependency_job_id":null,"html_url":"https://github.com/Shambles-Dev/AutoHotkey-HashTable","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shambles-Dev%2FAutoHotkey-HashTable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shambles-Dev%2FAutoHotkey-HashTable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shambles-Dev%2FAutoHotkey-HashTable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shambles-Dev%2FAutoHotkey-HashTable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Shambles-Dev","download_url":"https://codeload.github.com/Shambles-Dev/AutoHotkey-HashTable/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253981958,"owners_count":21994364,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ahk","autohotkey","hash-tables"],"created_at":"2024-08-04T01:00:38.418Z","updated_at":"2025-05-13T16:32:34.821Z","avatar_url":"https://github.com/Shambles-Dev.png","language":"AutoHotkey","readme":"HashTable\r\n=========\r\n\r\nHashTable is an improvement on storing items in AutoHotkey Objects.\r\n\r\nWith HashTable you can\r\n* store any string key without losing access to HashTable’s methods\r\n* prevent string keys from being case-folded\r\n* prevent floating-point keys from being indexed by their current string representation instead of their value\r\n\r\n:warning: Hash tables are inherently unordered.  When enumerating a hash table, do not expect to process keys in sorted order or insertion order.  If you need to process keys in a certain order, store them in that order in an Array and enumerate that while operating on the HashTable or use something other than a hash table (like an [AVL tree](https://en.wikipedia.org/wiki/AVL_tree)).\r\n\r\n:warning: Mutating a hash table while enumerating it might cause items to be processed more than once or skipped.  You can get the desired effect by enumerating a clone of the HashTable while mutating the HashTable you intend to keep.\r\n\r\n:warning: Floating-point keys are rarely useful because it is rarely safe to compare the result of a floating-point calculation exactly.  Deduplicating floating-point results and converting mathematical constants to their names are examples of valid uses.\r\n\r\n:warning: Object keys are rarely useful because they are indexed by their address.  Two objects might behave identically in every way, but if they are not the *same* object (stored in the same location in memory), they will not be associated with the same value.  Recording visited nodes in a graph traversal algorithm is an example of a valid use.\r\n\r\n[Design](docs/Design.md) contains the reasons for the design decisions.\r\n\r\nHashTable is compatible with AutoHotkey v1.\r\n\r\n\r\n## Installation\r\n\r\nHashTable.ahk must be placed in a [library directory](https://www.autohotkey.com/docs/Functions.htm#lib).\r\n\r\n\r\n## Usage\r\n\r\nHashTable’s constructor accepts items as Arrays containing a key and a value, in that order.\r\n\r\nHashTable supports the following methods:\r\n```AutoHotkey\r\nGet(Key)\r\nSet(Key, Value)\r\n```\r\n\r\n`Get(Key)` reads the value associated with a key.\r\n\r\n`Set(Key, Value)` writes the value associated with a key.\r\n\r\nHashTable also supports the following interfaces from [Object](https://www.autohotkey.com/docs/objects/Object.htm):\r\n```AutoHotkey\r\nDelete(Key)\r\nCount()\r\n_NewEnum()\r\nHasKey(Key)\r\nClone()\r\n```\r\n\r\nHashTable will throw an exception when attempting to get or delete a nonexistent key.\r\n","funding_links":[],"categories":["Libraries"],"sub_categories":["\u003ca name=\"libraries-data-structs-algorithms\"\u003e\u003c/a\u003eData Structures and Algorithms"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FShambles-Dev%2FAutoHotkey-HashTable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FShambles-Dev%2FAutoHotkey-HashTable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FShambles-Dev%2FAutoHotkey-HashTable/lists"}