{"id":25003802,"url":"https://github.com/lpogic/suite","last_synced_at":"2025-07-30T15:19:03.809Z","repository":{"id":116401168,"uuid":"269937244","full_name":"lpogic/suite","owner":"lpogic","description":"Uniwersalny kontener","archived":false,"fork":false,"pushed_at":"2022-03-22T19:05:02.000Z","size":683,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-04T22:39:21.656Z","etag":null,"topics":["data-structures","java"],"latest_commit_sha":null,"homepage":"","language":"Java","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/lpogic.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":"2020-06-06T09:50:19.000Z","updated_at":"2022-01-08T23:28:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"ff0784fc-09bf-4180-8574-d881d2ee82c6","html_url":"https://github.com/lpogic/suite","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lpogic%2Fsuite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lpogic%2Fsuite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lpogic%2Fsuite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lpogic%2Fsuite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lpogic","download_url":"https://codeload.github.com/lpogic/suite/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246249221,"owners_count":20747168,"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":["data-structures","java"],"created_at":"2025-02-04T22:39:08.114Z","updated_at":"2025-03-29T22:12:42.149Z","avatar_url":"https://github.com/lpogic.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# suite\nUniwersalny kontener. Mapa pamiętająca kolejność dodawania. Stosuje luźne podejście do typów. \n\n# Przykłady\n\nW nazewnictwie przyjęto zasadę, że obiekty klasy Subject (czyli tworzonego przez Suite/$uite) dostają prefix '$'.\nW przykładach użyto notacji \u003ca href=\"https://github.com/lpogic/brackettree\"\u003eBracketTree\u003c/a\u003e\n\n## 1. Utwórz zbiór liczb od 1 do 5:\n```\n1 [] 2 [] 3 [] 4 [] 5\n```\n## \u0026#x21e9;\n```\nvar $set = Suite.set(1, 2, 3, 4, 5);\n```\nalbo przy statycznym użyciu metod $uite (`import static suite.suite.$uite.*;`):\n```\nvar $set = $(1, 2, 3, 4, 5);\n```\n## 2. Utwórz listę liczb od 1 do 5:\n```\n[ 1 ][ 2 ][ 3 ][ 4 ][ 5 ]\n```\n## \u0026#x21e9;\n```\nvar $list = Suite.add(1, 2, 3, 4, 5);\n```\nalbo przy statycznym użyciu metod $uite (`import static suite.suite.$uite.*;`):\n```\nvar $list = $($(1), $(2), $(3), $(4), $(5));\n```\n## 3. Utwórz mapę jak poniżej:\n```\n1 [ a ] \n2 [ b ] \n3 [ c ]\n```\n## \u0026#x21e9;\n```\nvar $map = Suite.put(1, 'a').put(2, 'b').put(3, 'c');\n```\nalbo przy statycznym użyciu metod $uite (`import static suite.suite.$uite.*;`):\n```\nvar $map = $(\n  1, $('a'),\n  2, $('b'),\n  3, $('c')\n);\n```\n## 4. Utwórz drzewo: \n```\n1 [ 1 ] \n2 [ 1 [] 2 ] \n3 [ 1 [] 3 ] \n4 [ \n  1 [] \n  2 [ 1 [] 2 ] \n  4 [] \n]\n```\n## \u0026#x21e9;\n```\nvar $tree = Suite.put(1, 1)\n                 .input(2, Suite.set(1, 2))\n                 .input(3, Suite.set(1, 3))\n                 .input(4, Suite.set(1)\n                                .input(2, Suite.set(1, 2))\n                                .set(4));\n```\nalbo przy statycznym użyciu metod $uite (`import static suite.suite.$uite.*;`):\n```\nvar $map = $(\n  1, $(1),\n  2, $(1, 2),\n  3, $(1, 3),\n  4, $(1, 2, $(1, 2), 4)\n);\n```\n## 5. Utwórz graf:\n```\n[ \n  #[ a ]\n  [ #b ] \n][ \n  #[ b ]\n  [ #c ] \n][ \n  #[ c ]\n  [ #a ] \n]\n```\n## \u0026#x21e9;\n```\nvar $c = Suite.set();\nvar $b = Suite.inset($c);\nvar $a = Suite.inset($b);\n$c.inset($a);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flpogic%2Fsuite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flpogic%2Fsuite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flpogic%2Fsuite/lists"}