{"id":13486779,"url":"https://github.com/hoshixlily/ts-collections","last_synced_at":"2025-03-27T21:31:02.081Z","repository":{"id":41349192,"uuid":"508525598","full_name":"hoshixlily/ts-collections","owner":"hoshixlily","description":"A simple data structures library for TypeScript","archived":false,"fork":false,"pushed_at":"2025-03-27T02:34:13.000Z","size":7114,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-03-27T02:40:01.996Z","etag":null,"topics":["collections","enumerable","linq","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/hoshixlily.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}},"created_at":"2022-06-29T02:55:57.000Z","updated_at":"2025-03-27T02:34:15.000Z","dependencies_parsed_at":"2023-12-09T17:24:40.176Z","dependency_job_id":"223307ea-272b-4d7f-8cf7-b2902d749f67","html_url":"https://github.com/hoshixlily/ts-collections","commit_stats":null,"previous_names":["hoshixlily/ts-collections"],"tags_count":60,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hoshixlily%2Fts-collections","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hoshixlily%2Fts-collections/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hoshixlily%2Fts-collections/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hoshixlily%2Fts-collections/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hoshixlily","download_url":"https://codeload.github.com/hoshixlily/ts-collections/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245927176,"owners_count":20695180,"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":["collections","enumerable","linq","typescript"],"created_at":"2024-07-31T18:00:51.014Z","updated_at":"2025-03-27T21:31:02.045Z","avatar_url":"https://github.com/hoshixlily.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"A simple TypeScript library for basic data structures.\n\n## Installation\n\n````shell\nnpm i @mirei/ts-collections\n````\n\n## Available Collections\n* List\n  * List\n  * LinkedList\n* Set\n    * EnumerableSet\n    * SortedSet\n* Dictionary\n  * Dictionary\n  * SortedDictionary\n* Queue\n* Stack\n\n_**To be updated with details...**_\n\n## Enumerable Support\n\n### Example Usage\n\n````typescript\nconst list = new List([1, 2, 3, 4, 5, 6, 7, 8, 9, 10]);\nconst list2 = list.select(n =\u003e n * n).takeWhile(n \u003c= 25).skipWhile(n \u003c 10).orderByDescending(n =\u003e n).toList();\nconst array = list.takeLast(5).toArray();\n````\n\nYou can also use Enumerable with plain arrays.\n\n````typescript\nconst array = Enumerable.from([1, 2, 3, 4, 5]).where(n =\u003e n % 2 !== 0).toArray();\n````\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhoshixlily%2Fts-collections","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhoshixlily%2Fts-collections","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhoshixlily%2Fts-collections/lists"}