{"id":24810768,"url":"https://github.com/yusukehosonuma/shlist","last_synced_at":"2025-06-16T07:06:54.869Z","repository":{"id":42443502,"uuid":"250543932","full_name":"YusukeHosonuma/SHList","owner":"YusukeHosonuma","description":"HList for Swift by statically meta-programming.","archived":false,"fork":false,"pushed_at":"2022-07-22T05:44:02.000Z","size":56,"stargazers_count":5,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-29T02:49:27.007Z","etag":null,"topics":["functional-programming","hlist","swift"],"latest_commit_sha":null,"homepage":"","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-27T13:38:23.000Z","updated_at":"2022-12-29T12:26:33.000Z","dependencies_parsed_at":"2022-08-28T07:12:13.172Z","dependency_job_id":null,"html_url":"https://github.com/YusukeHosonuma/SHList","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/YusukeHosonuma/SHList","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YusukeHosonuma%2FSHList","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YusukeHosonuma%2FSHList/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YusukeHosonuma%2FSHList/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YusukeHosonuma%2FSHList/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/YusukeHosonuma","download_url":"https://codeload.github.com/YusukeHosonuma/SHList/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YusukeHosonuma%2FSHList/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260116644,"owners_count":22961064,"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","hlist","swift"],"created_at":"2025-01-30T12:18:00.053Z","updated_at":"2025-06-16T07:06:54.814Z","avatar_url":"https://github.com/YusukeHosonuma.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SHList\n\n[![CocoaPods](https://img.shields.io/cocoapods/v/SHList.svg)](https://cocoapods.org/pods/SHList)\n![SPM Compatible](https://img.shields.io/badge/SPM-compatible-4BC51D.svg?style=flat)\n[![License](https://img.shields.io/github/license/YusukeHosonuma/SHList)](https://github.com/YusukeHosonuma/SHList/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\nSHList is HList for Swift by statically meta-programming.\n\n![Screenshot](https://raw.githubusercontent.com/YusukeHosonuma/SHList/master/Images/screenshot.png)\n\n```swift\nlet list = HList(\"Hello\", 42, true)\n\nlist.head           // =\u003e \"Hello\"\nlist.tail.head      // =\u003e 42\nlist.tail.tail.head // =\u003e true\n\nlist.count           // =\u003e 3\nlist.tail.count      // =\u003e 2\nlist.tail.tail.count // =\u003e 2\n\nlist.asArray() // =\u003e [\"Hello\", 42, true] as [Any]\n\nfunc f(a1: String, a2: Int, a3: Bool) -\u003e String {\n    \"\\(a1),\\(a2),\\(a3)\"\n}\n\nlist.apply(f) // =\u003e \"Hello,42,true\"\n```\n\n## Limitation\n\nOnly up to **20 elements** are supported.\n\n## Author\n\nYusuke Hosonuma / tobi462@gmail.com / [@tobi462](https://twitter.com/tobi462)\n\n## License\n\n[SHList](https://github.com/YusukeHosonuma/SHList) 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%2Fshlist","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyusukehosonuma%2Fshlist","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyusukehosonuma%2Fshlist/lists"}