{"id":18418580,"url":"https://github.com/bsm/sortedset","last_synced_at":"2025-04-13T05:54:49.268Z","repository":{"id":62866031,"uuid":"558900978","full_name":"bsm/sortedset","owner":"bsm","description":"Simple set implementation. Uses sorted slices and generics","archived":false,"fork":false,"pushed_at":"2022-10-28T14:57:16.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-13T05:54:46.851Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bsm.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}},"created_at":"2022-10-28T14:52:44.000Z","updated_at":"2022-10-28T14:56:57.000Z","dependencies_parsed_at":"2022-11-08T06:15:37.410Z","dependency_job_id":null,"html_url":"https://github.com/bsm/sortedset","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/bsm%2Fsortedset","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bsm%2Fsortedset/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bsm%2Fsortedset/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bsm%2Fsortedset/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bsm","download_url":"https://codeload.github.com/bsm/sortedset/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248670502,"owners_count":21142901,"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":[],"created_at":"2024-11-06T04:14:05.041Z","updated_at":"2025-04-13T05:54:49.235Z","avatar_url":"https://github.com/bsm.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sorted Set\n\n[![Go Reference](https://pkg.go.dev/badge/github.com/bsm/sortedset.svg)](https://pkg.go.dev/github.com/bsm/sortedset)\n[![Test](https://github.com/bsm/sortedset/actions/workflows/test.yml/badge.svg)](https://github.com/bsm/sortedset/actions/workflows/test.yml)\n[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)\n\nSimple set implementation. Uses sorted slices and generics.\n\n### Documentation\n\nFull documentation is available on [go.dev](https://pkg.go.dev/github.com/bsm/sortedset).\n\n### Example\n\n```go\npackage main\n\nimport (\n  \"fmt\"\n\n  \"github.com/bsm/sortedset\"\n)\n\nfunc main() {\n\t// Create a new set\n\tset := sortedset.New[string]()\n\n\t// Seed with data\n\tset = set.Add(\"b\")\n\tset = set.Add(\"a\")\n\tset = set.Add(\"c\", \"a\")\n\tfmt.Println(set.Slice()) // [a b c]\n\n\t// Check\n\tfmt.Println(set.Has(\"a\")) // true\n\tfmt.Println(set.Has(\"d\")) // false\n\n\t// Delete items\n\tset = set.Delete(\"a\")\n\tset = set.Delete(\"d\")\n\tfmt.Println(set.Slice()) // [b c]\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbsm%2Fsortedset","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbsm%2Fsortedset","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbsm%2Fsortedset/lists"}