{"id":17557526,"url":"https://github.com/blaknite/lua-binary-heap","last_synced_at":"2025-03-29T09:21:15.029Z","repository":{"id":74077246,"uuid":"56476634","full_name":"blaknite/lua-binary-heap","owner":"blaknite","description":"Binary heap data structure implemented in lua.","archived":false,"fork":false,"pushed_at":"2016-04-20T04:51:58.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-03T23:55:58.087Z","etag":null,"topics":["binary-heap","lua"],"latest_commit_sha":null,"homepage":"https://github.com/blaknite/lua-binary-heap","language":"Lua","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/blaknite.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":"2016-04-18T04:19:59.000Z","updated_at":"2017-05-23T05:04:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"9cad2471-fbbc-4592-ab42-33f063c517e0","html_url":"https://github.com/blaknite/lua-binary-heap","commit_stats":{"total_commits":9,"total_committers":1,"mean_commits":9.0,"dds":0.0,"last_synced_commit":"0cd1ff8f614ea201640d0c54a2750d609d8a8066"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blaknite%2Flua-binary-heap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blaknite%2Flua-binary-heap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blaknite%2Flua-binary-heap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blaknite%2Flua-binary-heap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blaknite","download_url":"https://codeload.github.com/blaknite/lua-binary-heap/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246162668,"owners_count":20733460,"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":["binary-heap","lua"],"created_at":"2024-10-21T09:08:20.121Z","updated_at":"2025-03-29T09:21:15.007Z","avatar_url":"https://github.com/blaknite.png","language":"Lua","readme":"# lua-binary-heap\nBinary heap data structure implemented in lua.\n\nBuilt as a class with [kikito's middleclass](https://github.com/kikito/middleclass) which you will need as a dependency.\n\n## Usage\n\n```lua\nheap = Heap:new() -- creates a min heap\n=\u003e Heap\n\nheap:insert(3, 'first payload')\n=\u003e nil\nheap:insert(1, 'second payload')\n=\u003e nil\n\nweight, payload = heap:pop()\n=\u003e 1, 'second payload'\n```\n\nFor all methods and their usage see comments within `heap.lua`.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblaknite%2Flua-binary-heap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblaknite%2Flua-binary-heap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblaknite%2Flua-binary-heap/lists"}