{"id":24545016,"url":"https://github.com/yusukehosonuma/flatten","last_synced_at":"2025-07-01T05:39:08.845Z","repository":{"id":42443548,"uuid":"250449036","full_name":"YusukeHosonuma/Flatten","owner":"YusukeHosonuma","description":"Flatten method reference that resolved to SE-0042.","archived":false,"fork":false,"pushed_at":"2022-07-22T05:44:54.000Z","size":31,"stargazers_count":4,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-16T09:14:52.270Z","etag":null,"topics":["functional-programming","swift"],"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/YusukeHosonuma.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":"2020-03-27T05:32:35.000Z","updated_at":"2025-02-21T20:00:39.000Z","dependencies_parsed_at":"2022-08-20T20:20:32.266Z","dependency_job_id":null,"html_url":"https://github.com/YusukeHosonuma/Flatten","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YusukeHosonuma%2FFlatten","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YusukeHosonuma%2FFlatten/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YusukeHosonuma%2FFlatten/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YusukeHosonuma%2FFlatten/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/YusukeHosonuma","download_url":"https://codeload.github.com/YusukeHosonuma/Flatten/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243847060,"owners_count":20357317,"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":["functional-programming","swift"],"created_at":"2025-01-22T21:17:30.757Z","updated_at":"2025-03-16T09:14:55.841Z","avatar_url":"https://github.com/YusukeHosonuma.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Flatten\n\n[![CocoaPods](https://img.shields.io/cocoapods/v/Flatten.svg)](https://cocoapods.org/pods/Flatten)\n![SPM Compatible](https://img.shields.io/badge/SPM-compatible-4BC51D.svg?style=flat)\n[![License](https://img.shields.io/github/license/YusukeHosonuma/Flatten)](https://github.com/YusukeHosonuma/Flatten/blob/master/LICENSE)\n[![Twitter](https://img.shields.io/twitter/url?style=social\u0026url=https%3A%2F%2Ftwitter.com%2Ftobi462)](https://twitter.com/tobi462)\n\nFlatten instance method reference that resolved to [SE-0042](https://github.com/apple/swift-evolution/blob/master/proposals/0042-flatten-method-types.md).\n\n```swift\nlet f: (String) -\u003e (String) -\u003e Bool = String.hasPrefix\n\n// function is curried\nf(\"Hello\")(\"He\") // =\u003e true\n\nlet __f: (String, String) -\u003e Bool = flatten(f)\n\n// function is flattend\n__f(\"Hello\", \"He\") // =\u003e true\n```\n\n## Limitation\n\nOnly up to **20 arguments** are supported.\n\n## Author\n\nYusuke Hosonuma / tobi462@gmail.com / [@tobi462](https://twitter.com/tobi462)\n\n## License\n\n[Flatten](https://github.com/YusukeHosonuma/Flatten) 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%2Fyusukehosonuma%2Fflatten","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyusukehosonuma%2Fflatten","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyusukehosonuma%2Fflatten/lists"}