{"id":27172261,"url":"https://github.com/pharo-containers/containers-uniqueordered","last_synced_at":"2025-04-09T09:35:59.160Z","repository":{"id":259858647,"uuid":"132657250","full_name":"pharo-containers/Containers-UniqueOrdered","owner":"pharo-containers","description":"To get unique (set) but ordered collection.","archived":false,"fork":false,"pushed_at":"2025-03-26T19:41:48.000Z","size":19,"stargazers_count":2,"open_issues_count":2,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-26T20:33:36.749Z","etag":null,"topics":["collections","pharo"],"latest_commit_sha":null,"homepage":null,"language":"Smalltalk","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pharo-containers.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2018-05-08T19:48:08.000Z","updated_at":"2025-03-26T19:41:47.000Z","dependencies_parsed_at":"2024-10-28T13:25:59.620Z","dependency_job_id":"9ff9f93f-9b46-4c4c-8ec7-ae51d6616999","html_url":"https://github.com/pharo-containers/Containers-UniqueOrdered","commit_stats":null,"previous_names":["pharo-containers/containers-uniqueordered"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pharo-containers%2FContainers-UniqueOrdered","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pharo-containers%2FContainers-UniqueOrdered/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pharo-containers%2FContainers-UniqueOrdered/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pharo-containers%2FContainers-UniqueOrdered/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pharo-containers","download_url":"https://codeload.github.com/pharo-containers/Containers-UniqueOrdered/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248013463,"owners_count":21033359,"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","pharo"],"created_at":"2025-04-09T09:35:58.523Z","updated_at":"2025-04-09T09:35:59.146Z","avatar_url":"https://github.com/pharo-containers.png","language":"Smalltalk","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Containers-UniqueOrdered\n\n\u003ca href=\"https://www.pharo.org\"\u003e\n    \u003cimg alt=\"Pharo\" src=\"https://img.shields.io/static/v1?style=for-the-badge\u0026message=Pharo\u0026color=3297d4\u0026logo=Harbor\u0026logoColor=FFFFFF\u0026label=\" /\u003e\n\u003c/a\u003e\n\nTo get unique (set) but ordered collection.\nThis package contains two collections: one that is an ordered set and one that is an ordered collection with unique items. \n\n\n\n[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://img.shields.io/badge/license-MIT-blue.svg)\n![https://github.com/pharo-containers/Containers-UniqueOrdered/workflows/test/badge.svg](https://github.com/pharo-containers/Containers-UniqueOrdered/workflows/test/badge.svg)\n\n\n## Example \n\n```\nCTUniqueOrderedTest \u003e\u003e testAddBeforeOfTwiceTheSame [\n\tcollection add: 1.\n\tcollection add: 33.\n\tcollection add: 1.\n\tself assert: collection size equals: 2. \n\t\"1 33\"\n\tcollection add: 2 before: 33.\n\t\"1 2 33\"\n\tself assert: collection size equals: 3. \n\tself assert: (collection indexOf: 2) equals: 2.\n\tself assert: (collection indexOf: 1) equals: 1.\n\tself assert: (collection indexOf: 33) equals: 3.\n\t\"now we add again 2\"\n\tcollection add: 2 before: 1.\n\t\"2 1 33\"\n\tself assert: collection size equals: 3. \n\tself assert: (collection indexOf: 2) equals: 1.\n\tself assert: (collection indexOf: 1) equals: 2.\n\tself assert: (collection indexOf: 33) equals: 3.\n]\n```\n## Loading\n```\nMetacello new\n   baseline: 'ContainersUniqueOrdered';\n   repository: 'github://pharo-containers/Containers-UniqueOrdered';\n   load.\n ```\n \n ## If you want to depend on it:\n ```\n spec \n   baseline: 'ContainersUniqueOrdered' \n   with: [ spec repository: 'github://pharo-containers/Containers-UniqueOrdered/src' ].\n ```\n\n\nThis package is part of the Containers project: This project is to collect, clean, test and document alternate collection datastructures. \nEach package is modular so that users can only load the collection they need without 100 of related collections.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpharo-containers%2Fcontainers-uniqueordered","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpharo-containers%2Fcontainers-uniqueordered","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpharo-containers%2Fcontainers-uniqueordered/lists"}