{"id":17746655,"url":"https://github.com/trivigy/multiset","last_synced_at":"2025-04-01T04:32:32.164Z","repository":{"id":57551787,"uuid":"177248138","full_name":"trivigy/multiset","owner":"trivigy","description":"Implementation of the multiset data structure","archived":false,"fork":false,"pushed_at":"2019-06-23T21:24:26.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-06-20T16:35:20.307Z","etag":null,"topics":["algorithm","data-structure","go","multiset"],"latest_commit_sha":null,"homepage":"","language":"Go","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/trivigy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-03-23T05:27:56.000Z","updated_at":"2022-09-06T07:07:50.000Z","dependencies_parsed_at":"2022-09-26T18:41:36.874Z","dependency_job_id":null,"html_url":"https://github.com/trivigy/multiset","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trivigy%2Fmultiset","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trivigy%2Fmultiset/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trivigy%2Fmultiset/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trivigy%2Fmultiset/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/trivigy","download_url":"https://codeload.github.com/trivigy/multiset/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246586087,"owners_count":20801025,"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":["algorithm","data-structure","go","multiset"],"created_at":"2024-10-26T08:08:10.530Z","updated_at":"2025-04-01T04:32:32.136Z","avatar_url":"https://github.com/trivigy.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Multiset\n[![CircleCI branch](https://img.shields.io/circleci/project/github/trivigy/multiset/master.svg?label=master\u0026logo=circleci)](https://circleci.com/gh/trivigy/workflows/multiset)\n[![License](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE.md)\n[![](https://godoc.org/github.com/trivigy/multiset?status.svg\u0026style=flat)](http://godoc.org/github.com/trivigy/multiset)\n[![GitHub tag (latest SemVer)](https://img.shields.io/github/tag/trivigy/multiset.svg?style=flat\u0026color=e36397\u0026label=release)](https://github.com/trivigy/multiset/releases/latest)\n\nMultiset is a threadsafe abstract data structure library for representing \ncollection of distinct values, without any particular order. Unlike a set, \nmultiset allows multiple instances for each of its elements.\n\n### Example\n```go\npackage main\n\nimport (\n    \"fmt\"\n    \n    \"github.com/trivigy/multiset\"\n)\n\nfunc main() {\n    m := multiset.New(\"b\", \"b\", \"c\", \"d\")\n    fmt.Println(m.Contains(\"b\", \"c\", \"d\"))\n    \n    m1 := multiset.New()\n    m1.AddCount(\"a\", 3)\n    m1.AddCount(\"b\", 2)\n    fmt.Println(m1.DistinctElements())\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrivigy%2Fmultiset","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrivigy%2Fmultiset","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrivigy%2Fmultiset/lists"}