{"id":37050383,"url":"https://github.com/simulation-tree/collections","last_synced_at":"2026-01-14T05:50:32.944Z","repository":{"id":281749722,"uuid":"881054866","full_name":"simulation-tree/collections","owner":"simulation-tree","description":"Native C# library implementing collections","archived":false,"fork":false,"pushed_at":"2025-09-24T03:03:20.000Z","size":262,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-09-24T05:18:27.758Z","etag":null,"topics":["csharp","dotnet","nativeaot"],"latest_commit_sha":null,"homepage":"","language":"C#","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/simulation-tree.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-10-30T20:49:23.000Z","updated_at":"2025-09-24T03:00:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"318db5c3-7e00-452e-8be0-83a5a8e1768b","html_url":"https://github.com/simulation-tree/collections","commit_stats":null,"previous_names":["simulation-tree/collections"],"tags_count":67,"template":false,"template_full_name":null,"purl":"pkg:github/simulation-tree/collections","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simulation-tree%2Fcollections","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simulation-tree%2Fcollections/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simulation-tree%2Fcollections/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simulation-tree%2Fcollections/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simulation-tree","download_url":"https://codeload.github.com/simulation-tree/collections/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simulation-tree%2Fcollections/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28411613,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T05:26:33.345Z","status":"ssl_error","status_checked_at":"2026-01-14T05:21:57.251Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["csharp","dotnet","nativeaot"],"created_at":"2026-01-14T05:50:32.357Z","updated_at":"2026-01-14T05:50:32.939Z","avatar_url":"https://github.com/simulation-tree.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Collections\n\n[![Test](https://github.com/simulation-tree/collections/actions/workflows/test.yml/badge.svg)](https://github.com/simulation-tree/collections/actions/workflows/test.yml)\n\nNative C# library implementing collections.\n\n### Installation\n\nInstall it by cloning it, or referencing through the NuGet package through GitHub's registry ([authentication info](https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-nuget-registry#authenticating-to-github-packages)).\n\nFor installing as a Unity package, use these urls to add this repo and its dependency:\n```\nhttps://github.com/simulation-tree/collections.git?path=source#unity\nhttps://github.com/simulation-tree/unmanaged.git?path=core#unity\n```\n\n### Arrays\n\n```cs\nusing Array\u003cint\u003e array = new(4);\narray[0] = 1;\narray[1] = 3;\narray[2] = 3;\narray[3] = 7;\n\nforeach (int item in array)\n{\n    Console.WriteLine(item);\n}\n```\n\n### Lists\n\n```cs\nusing List\u003cint\u003e list = new();\nlist.Add(1);\nlist.Add(3);\nlist.Add(3);\nlist.Add(7);\n\nforeach (int item in list)\n{\n    Console.WriteLine(item);\n}\n```\n\n### Dictionaries\n\n```cs\nusing Dictionary\u003cbyte, int\u003e dictionary = new();\ndictionary.Add(1, 1337);\ndictionary.Add(2, 8008135);\ndictionary.Add(3, 42);\n\nforeach ((byte key, int value) in dictionary)\n{\n    Console.WriteLine($\"{key} = {value}\");\n}\n```\n\n### Stacks\n\n```cs\nusing Stack\u003cint\u003e stack = new();\nstack.Push(1);\nstack.Push(3);\nstack.Push(3);\nstack.Push(7);\n\nwhile (stack.TryPop(out int item))\n{\n    Console.WriteLine(item);\n}\n```\n\n### Queues\n    \n```cs\nusing Queue\u003cint\u003e queue = new();\nqueue.Enqueue(1);\nqueue.Enqueue(3);\nqueue.Enqueue(3);\nqueue.Enqueue(7);\n\nwhile (queue.TryDequeue(out int item))\n{\n    Console.WriteLine(item);\n}\n```\n\n### Hash sets\n\n```cs\nusing HashSet\u003cint\u003e hashSet = new();\nhashSet.TryAdd(1);\nhashSet.TryAdd(3);\nhashSet.TryAdd(3);\nhashSet.TryAdd(7);\n\nforeach (int item in hashSet)\n{\n    Console.WriteLine(item);\n}\n\nif (hashSet.TryGetValue(7, out int actualValue))\n{\n    Console.WriteLine(actualValue);\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimulation-tree%2Fcollections","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimulation-tree%2Fcollections","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimulation-tree%2Fcollections/lists"}