{"id":18286234,"url":"https://github.com/azrafe7/hxorderedmap","last_synced_at":"2026-01-20T08:02:12.510Z","repository":{"id":144722959,"uuid":"151305344","full_name":"azrafe7/hxOrderedMap","owner":"azrafe7","description":"Ordered maps for haxe 4.0.0-preview5+.","archived":false,"fork":false,"pushed_at":"2019-01-23T03:50:14.000Z","size":178,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-09T06:27:24.954Z","etag":null,"topics":["haxe","map","ordered"],"latest_commit_sha":null,"homepage":"","language":"Haxe","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/azrafe7.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-10-02T18:43:41.000Z","updated_at":"2024-02-16T14:15:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"646e223c-5d7e-4c78-b117-7a48125ab985","html_url":"https://github.com/azrafe7/hxOrderedMap","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/azrafe7/hxOrderedMap","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/azrafe7%2FhxOrderedMap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/azrafe7%2FhxOrderedMap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/azrafe7%2FhxOrderedMap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/azrafe7%2FhxOrderedMap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/azrafe7","download_url":"https://codeload.github.com/azrafe7/hxOrderedMap/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/azrafe7%2FhxOrderedMap/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28598874,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T02:08:49.799Z","status":"ssl_error","status_checked_at":"2026-01-20T02:08:44.148Z","response_time":117,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["haxe","map","ordered"],"created_at":"2024-11-05T13:19:23.602Z","updated_at":"2026-01-20T08:02:12.497Z","avatar_url":"https://github.com/azrafe7.png","language":"Haxe","funding_links":[],"categories":[],"sub_categories":[],"readme":"hxOrderedMap\n==========================================\n\nOrdered maps for haxe 4.0.0-preview5+.\n\n\n## Overview\n\nThis is a multi-type abstract that wraps `haxe.ds.Map` and can be used with the same API.\n\nIt also adds a few methods/props (so far `length`, `keysCopy()`, `clear()`).\n\nThe main difference with Map is that the order of insertion is preserved.\n\n\n## Minimal example\n\n```haxe\nvar keys = [\"1\", \"apple\", \"banana\", \"orange\", \"one\", \"two\", \"three\"];\nvar values = [for (i in 0...keys.length) i];\n\nvar omap = new OrderedMap();\nvar map = new Map();\n\nfor (i in 0...keys.length) {\n  var k = keys[i];\n  var v = values[i];\n\n  omap[k] = v;\n  map[k] = v;\n}\n\ntrace(\"ORDERED  : \" + omap); // always  [1 =\u003e 0, apple =\u003e 1, banana =\u003e 2, orange =\u003e 3, one =\u003e 4, two =\u003e 5, three =\u003e 6]\ntrace(\"UNORDERED: \" + map);  // may be  {orange =\u003e 3, three =\u003e 6, apple =\u003e 1, banana =\u003e 2, one =\u003e 4, 1 =\u003e 0, two =\u003e 5}\n```\n\n\n## Notes\n\nInternal book-keeping to maintain the order of insertion makes using this data structure a bit slower than using a Map directly\n(e.g. approximately 1.5-2x slower for set/remove). \n\nRetrieving some info from an OrderedMap instance is faster for the same reason \n(e.g. getting the number of key-values, a copy of the keys, clearing the map, etc.).\n\nBenchmarks for latest build (https://azrafe7.github.io/haxe-bencharts/?repo=azrafe7/hxOrderedMap).\n\nNote that this is not intended as a replacement for `haxe.ds.Map` (especially if you care about speed), but I've found it useful in many situations.\n\n\n## License (MIT)\n\nSee [LICENSE](LICENSE).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fazrafe7%2Fhxorderedmap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fazrafe7%2Fhxorderedmap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fazrafe7%2Fhxorderedmap/lists"}