{"id":13770819,"url":"https://github.com/pharo-containers/Containers-OrderedSet","last_synced_at":"2025-05-11T03:32:54.878Z","repository":{"id":44136378,"uuid":"226177805","full_name":"pharo-containers/Containers-OrderedSet","owner":"pharo-containers","description":"A Set where an order of elements matters or an OrderedCollection with no duplicates. Supports the complete API of Set and OrderedCollection","archived":false,"fork":false,"pushed_at":"2025-05-02T08:32:47.000Z","size":52,"stargazers_count":4,"open_issues_count":3,"forks_count":7,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-05-02T09:43:18.207Z","etag":null,"topics":["collection","containers","data-structures","pharo","set"],"latest_commit_sha":null,"homepage":null,"language":"Smalltalk","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/pharo-containers.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":"2019-12-05T19:51:57.000Z","updated_at":"2025-05-02T08:32:51.000Z","dependencies_parsed_at":"2023-01-19T17:02:41.124Z","dependency_job_id":null,"html_url":"https://github.com/pharo-containers/Containers-OrderedSet","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/pharo-containers%2FContainers-OrderedSet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pharo-containers%2FContainers-OrderedSet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pharo-containers%2FContainers-OrderedSet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pharo-containers%2FContainers-OrderedSet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pharo-containers","download_url":"https://codeload.github.com/pharo-containers/Containers-OrderedSet/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253514352,"owners_count":21920327,"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":["collection","containers","data-structures","pharo","set"],"created_at":"2024-08-03T17:00:42.489Z","updated_at":"2025-05-11T03:32:54.595Z","avatar_url":"https://github.com/pharo-containers.png","language":"Smalltalk","funding_links":[],"categories":["Data Structures"],"sub_categories":[],"readme":"# Containers-OrderedSet\n\n[![Build Status](https://travis-ci.org/olekscode/Containers-OrderedSet.svg?branch=master)](https://travis-ci.org/olekscode/Containers-OrderedSet)\n[![Build status](https://ci.appveyor.com/api/projects/status/te7uf184lua3svb4?svg=true)](https://ci.appveyor.com/project/olekscode/containers-orderedset)\n[![Coverage Status](https://coveralls.io/repos/github/olekscode/Containers-OrderedSet/badge.svg?branch=master)](https://coveralls.io/github/olekscode/Containers-OrderedSet?branch=master)\n[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/olekscode/Containers-OrderedSet/master/LICENSE)\n[![Pharo version](https://img.shields.io/badge/Pharo-6.1-%23aac9ff.svg)](https://pharo.org/download)\n[![Pharo version](https://img.shields.io/badge/Pharo-7.0-%23aac9ff.svg)](https://pharo.org/download)\n[![Pharo version](https://img.shields.io/badge/Pharo-8.0-%23aac9ff.svg)](https://pharo.org/download)\n\nA `Set` where an order of elements matters or an `OrderedCollection` with no duplicates. Supports the complete API of `Set` and `OrderedCollection`.\n\n## Installation\nTo install `CTOrderedSet`, go to the Playground (`Ctrl+OW`) in your [Pharo](https://pharo.org/) image and execute the following Metacello script (select it and press Do-it button or `Ctrl+D`):\n\n```Smalltalk\nMetacello new\n  baseline: 'ContainersOrderedSet';\n  repository: 'github://pharo-containers/Containers-OrderedSet/src';\n  load.\n```\n\n## How to depend on it?\n\nIf you want to add a dependency on OrderedSet to your project, include the following lines into your baseline:\n\n```Smalltalk\nspec\n  baseline: 'ContainersOrderedSet'\n  with: [ spec repository: 'github://pharo-containers/Containers-OrderedSet/src' ].\n```\n\nTo read more about baselines and Metacello, check out the [Baselines](https://github.com/pharo-open-documentation/pharo-wiki/blob/master/General/Baselines.md) article on [Pharo Wiki](https://github.com/pharo-open-documentation/pharo-wiki).\n\n## How to use it?\n\n`CTOrderedSet` has the same API as `OrderedCollection`, extended with the methods of `Set`. So instance creation looks the same:\n\n```Smalltalk\nfirstBasket := CTOrderedSet withAll: #(apple apple orange banana orange banana).\nsecondBasket := CTOrderedSet withAll: #(banana apple banana banana). \n```\n\nOr you can use the `asOrderedSet` method:\n\n```Smalltalk\nfirstBasket := #(apple apple orange banana orange banana) asOrderedSet.\nsecondBasket := #(banana apple banana banana) asOrderedSet. \n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpharo-containers%2FContainers-OrderedSet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpharo-containers%2FContainers-OrderedSet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpharo-containers%2FContainers-OrderedSet/lists"}