{"id":21654715,"url":"https://github.com/localvoid/tuple","last_synced_at":"2025-04-11T21:13:50.316Z","repository":{"id":146944673,"uuid":"25339276","full_name":"localvoid/tuple","owner":"localvoid","description":"Tuple data structure for Dart","archived":false,"fork":false,"pushed_at":"2015-09-20T09:07:35.000Z","size":255,"stargazers_count":1,"open_issues_count":0,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-11T21:13:45.130Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/localvoid.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":"2014-10-17T05:00:22.000Z","updated_at":"2017-10-17T15:20:06.000Z","dependencies_parsed_at":"2023-04-07T22:24:03.358Z","dependency_job_id":null,"html_url":"https://github.com/localvoid/tuple","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/localvoid%2Ftuple","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/localvoid%2Ftuple/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/localvoid%2Ftuple/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/localvoid%2Ftuple/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/localvoid","download_url":"https://codeload.github.com/localvoid/tuple/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248480427,"owners_count":21110937,"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":[],"created_at":"2024-11-25T08:28:49.578Z","updated_at":"2025-04-11T21:13:50.269Z","avatar_url":"https://github.com/localvoid.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tuple data structure\n\nThere are two versions of this data structure:\n\n- mutable [Tuple2], [Tuple3]...\n- persistent [PersistentTuple2], [PersistentTuple3]...\n\n## Usage example\n\n```dart\nfinal t = new Tuple2\u003cString, int\u003e('a', 10);\n\nprint(t.i1); // prints 'a'\nprint(t.i2); // prints '10'\n```\n\n## Persistent Tuple\n\n\u003e In computing, a persistent data structure is a data structure that always\n\u003e preserves the previous version of itself when it is modified. Such data\n\u003e structures are effectively immutable, as their operations do not (visibly)\n\u003e update the structure in-place, but instead always yield a new updated\n\u003e structure. (A persistent data structure is not a data structure committed\n\u003e to persistent storage, such as a disk; this is a different and unrelated\n\u003e sense of the word \"persistent.\")\n\u003e\n\u003e [wikipedia](http://en.wikipedia.org/wiki/Persistent_data_structure)\n\n```dart\nfinal t1 = const PersistentTuple2\u003cString, int\u003e('a', 10);\nfinal t2 = t1.setI1('c');\n// t2 is a new [PersistentTuple2] object with i1 is 'c' and i2 is 10.\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flocalvoid%2Ftuple","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flocalvoid%2Ftuple","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flocalvoid%2Ftuple/lists"}