{"id":15494272,"url":"https://github.com/andyglow/scala-tuples","last_synced_at":"2026-05-08T12:51:33.231Z","repository":{"id":57719518,"uuid":"272557765","full_name":"andyglow/scala-tuples","owner":"andyglow","description":null,"archived":false,"fork":false,"pushed_at":"2020-06-18T17:55:26.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-12T23:29:07.962Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Scala","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/andyglow.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}},"created_at":"2020-06-15T22:35:47.000Z","updated_at":"2020-06-18T17:55:28.000Z","dependencies_parsed_at":"2022-08-27T16:31:37.298Z","dependency_job_id":null,"html_url":"https://github.com/andyglow/scala-tuples","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/andyglow%2Fscala-tuples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andyglow%2Fscala-tuples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andyglow%2Fscala-tuples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andyglow%2Fscala-tuples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andyglow","download_url":"https://codeload.github.com/andyglow/scala-tuples/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241494355,"owners_count":19971910,"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-10-02T08:12:59.378Z","updated_at":"2026-05-08T12:51:28.212Z","avatar_url":"https://github.com/andyglow.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Scala Tuple Extensions\n\nTypesafe operations on tuples.\n\n[![Build Status](https://cloud.drone.io/api/badges/andyglow/scala-tuples/status.svg)](https://cloud.drone.io/andyglow/scala-tuples)\n[![codecov](https://codecov.io/gh/andyglow/scala-tuples/branch/master/graph/badge.svg)](https://codecov.io/gh/andyglow/scala-tuples)\n[![Maven Central](https://img.shields.io/maven-central/v/com.github.andyglow/scala-tuples_2.13.svg?label=Maven%20Central)](https://search.maven.org/search?q=g:%22com.github.andyglow%22%20AND%20a:%22scala-tuples_2.13%22)\n\n- [x] prepend value `\"abc\" +: (1, false) == (\"abc\", 1, false)`\n- [x] append value `(1, false) :+ \"abc\" == (1, false, \"abc\")`\n- [x] concatenate `(1, false) :++ (\"abc\", 3.14) == (1, false, \"abc\", 3.14); (1, false) ++: (\"abc\", 3.14) == (1, false, \"abc\", 3.14)`\n- [x] reverse `(1, 2, 3).reversed == (3, 2, 1)`\n- [x] rotateRight `(1, 2, 3).rotatedRight == (3, 1, 2)`\n- [x] rotateLeft `(1, 2, 3).rotatedLeft == (2, 3, 1)`\n- [x] case class ToTuple \n      ```\n      case class CC(a: Int, b: String, c: Float)\n      ToTuple(CC(1, \"b\", 3.14)) == (1, \"b\", 3.14)\n      ```\n      So this is designed as less type-confusing analog of `CC.unapply(CC(1, \"b\", 3.14)).get`\n- [x] case class FromTuple \n      ```\n      case class CC(a: Int, b: String, c: Float)\n      FromTuple((1, \"b\", 3.14)).to[CC] == CC(1, \"b\", 3.14)\n      ```\n      \n## Use\n\n**SBT**\n```\nlibraryDependencies += \"com.andyglow.github\" %% \"scala-tuples\" % \"0.1.0\"\n```      \n\n**Maven**\n```\n\u003cdependency\u003e\n  \u003cgroupId\u003ecom.github.andyglow\u003c/groupId\u003e\n  \u003cartifactId\u003escala-tuples_2.13\u003c/artifactId\u003e\n  \u003cversion\u003e0.1.0\u003c/version\u003e\n\u003c/dependency\u003e\n```      \n**Gradle**\n```\nimplementation 'com.github.andyglow:scala-tuples_2.13:0.1.0'\n```      ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandyglow%2Fscala-tuples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandyglow%2Fscala-tuples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandyglow%2Fscala-tuples/lists"}