{"id":19793580,"url":"https://github.com/darky/gluple","last_synced_at":"2026-03-05T06:02:25.816Z","repository":{"id":239073679,"uuid":"798405818","full_name":"darky/gluple","owner":"darky","description":"Tuple methods for Gleam","archived":false,"fork":false,"pushed_at":"2025-12-14T11:23:04.000Z","size":34,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-16T16:09:12.812Z","etag":null,"topics":["gleam","tuple"],"latest_commit_sha":null,"homepage":"","language":"Gleam","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/darky.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-05-09T17:57:17.000Z","updated_at":"2025-12-14T11:22:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"b42e26a5-58c1-48f7-a6ea-d1691f881aa5","html_url":"https://github.com/darky/gluple","commit_stats":null,"previous_names":["darky/gluple"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/darky/gluple","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darky%2Fgluple","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darky%2Fgluple/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darky%2Fgluple/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darky%2Fgluple/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/darky","download_url":"https://codeload.github.com/darky/gluple/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darky%2Fgluple/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30111779,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T03:40:26.266Z","status":"ssl_error","status_checked_at":"2026-03-05T03:39:15.902Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["gleam","tuple"],"created_at":"2024-11-12T07:10:27.289Z","updated_at":"2026-03-05T06:02:25.792Z","avatar_url":"https://github.com/darky.png","language":"Gleam","readme":"# gluple\n\n[![Package Version](https://img.shields.io/hexpm/v/gluple)](https://hex.pm/packages/gluple)\n[![Hex Docs](https://img.shields.io/badge/hex-docs-ffaff3)](https://hexdocs.pm/gluple/)\n![Erlang-compatible](https://img.shields.io/badge/target-erlang-a2003e)\n![JavaScript-compatible](https://img.shields.io/badge/target-javascript-f1e05a)\n\nTuple methods for Gleam\n\n```sh\ngleam add gluple\n```\n\n```gleam\nimport gluple/reflect as gr\nimport gluple/addition as ga\nimport gluple/transform as gt\nimport gluple/removal as grm\n\npub fn main() {\n  gr.is_tuple(#(1, 2, 3)) // True\n\n  gr.tuple_size(#(1, True, \"test\")) // Ok(3)\n\n  gr.tuple_element(#(\"test\"), 0) // Ok(dynamic.from(\"test\"))\n\n  gr.tuple_to_list(#(1, 2, 3)) // Ok([dynamic.from(1), dynamic.from(2), dynamic.from(3)])\n\n  gr.list_to_tuple([1, 2, 3]) // dynamic.from(#(1, 2, 3))\n\n  ga.append2(#(1, True), \"test\") // #(1, True, \"test\")\n\n  {\n    use _n, _b, \u003c- ga.with_append2(#(1, True))\n    \"test\"\n  } // #(1, True, \"test\")\n\n  gt.replace_last2(#(1, True), \"test\") // #(1, \"test\")\n\n  {\n    use _n, _b, \u003c- ga.with_replace2(#(1, True))\n    \"test\"\n  } // #(1, \"test\")\n\n  #(1, True) |\u003e grm.remove_first2 // #(True)\n}\n```\n\nFurther documentation can be found at \u003chttps://hexdocs.pm/gluple\u003e.\n\n## Development\n\n```sh\ngleam run   # Run the project\ngleam test  # Run the tests\ngleam shell # Run an Erlang shell\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarky%2Fgluple","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdarky%2Fgluple","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarky%2Fgluple/lists"}