{"id":22405426,"url":"https://github.com/curatoopensource/arrayplustuple","last_synced_at":"2025-03-27T01:21:19.354Z","repository":{"id":56902393,"uuid":"135821593","full_name":"CuratoOpenSource/ArrayPlusTuple","owner":"CuratoOpenSource","description":"Simple extension that makes creating tuples from arrays a breeze.","archived":false,"fork":false,"pushed_at":"2020-11-03T16:01:53.000Z","size":268,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"develop","last_synced_at":"2024-03-15T13:44:21.948Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Swift","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/CuratoOpenSource.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":"2018-06-02T13:50:40.000Z","updated_at":"2020-11-03T16:01:55.000Z","dependencies_parsed_at":"2022-08-20T18:50:27.261Z","dependency_job_id":null,"html_url":"https://github.com/CuratoOpenSource/ArrayPlusTuple","commit_stats":null,"previous_names":["lvnkmn/arrayplustuple"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CuratoOpenSource%2FArrayPlusTuple","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CuratoOpenSource%2FArrayPlusTuple/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CuratoOpenSource%2FArrayPlusTuple/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CuratoOpenSource%2FArrayPlusTuple/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CuratoOpenSource","download_url":"https://codeload.github.com/CuratoOpenSource/ArrayPlusTuple/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245761595,"owners_count":20667936,"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-12-05T10:20:35.957Z","updated_at":"2025-03-27T01:21:19.327Z","avatar_url":"https://github.com/CuratoOpenSource.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ArrayPlusTuple\n\n [![Version](http://img.shields.io/cocoapods/v/ArrayPlusTuple.svg?style=flat)](http://cocoapods.org/pods/Zoomy) [![Platform](http://img.shields.io/cocoapods/p/ArrayPlusTuple.svg?style=flat)](http://cocoapods.org/pods/Zoomy) [![License](http://img.shields.io/cocoapods/l/ArrayPlusTuple.svg?style=flat)](LICENSE)\n\nSimple [extension](https://github.com/lvnkmn/ArrayPlusTuple/blob/develop/ArrayPlusTuple/Classes/Array%2Btuple.swift) that makes creating tuples from arrays a breeze. \n\nOriginally created for [Mock 'N Stub](https://github.com/lvnkmn/Mock-N-stub).\n\n## Setup\n\nJust add:\n\n```Swift\nimport ArrayPlusTuple\n```\n\nto the files where you need tuples from arrays.\n\n## Example\n\nNon optional Any:\n\n```Swift\nlet tuple = [1, 2, \"three\"].tuple\n```\n\nTyped optional:\n\n```Swift\nlet tuple = [1, 2, \"three\"].tuple as? (Int, Int, String)\n```\n\n## Larger arrays\n\nArrayPlusTuple currently supports creating tuples from arrays with up to 24 elements. \n\nWhen creating tuples from arrays with more than 24 elements, a warning will be logged and a tuple with the first 24 elements of the array is still returned.\n\n![Screenshot Missing](Art/Warning.png)\n\n### Need support for more elements?\n\nCreate a [feature request](https://github.com/lvnkmn/ArrayPlusTuple/issues/new) and it will likely be picked up.\n\nOr [add it yourself](https://github.com/lvnkmn/ArrayPlusTuple/blob/develop/ArrayPlusTuple/Classes/Array%2Btuple.swift) and create a pull request, if the [tests](http://htmlpreview.github.io/?https://github.com/lvnkmn/ArrayPlusTuple/blob/develop/fastlane/test_output/report.html) pass i'll merge it.\n\n## Installation\n\nArrayPlusTuple is available through [Swift Package Manager](https://swift.org/package-manager/). To install it, simply add it to your project using this repository's URL as explained [here](https://developer.apple.com/documentation/xcode/adding_package_dependencies_to_your_app).\n\n## License\n\nArrayPlusTuple is available under the MIT license. See the LICENSE file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcuratoopensource%2Farrayplustuple","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcuratoopensource%2Farrayplustuple","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcuratoopensource%2Farrayplustuple/lists"}