{"id":17645365,"url":"https://github.com/siriusstarr/elm-splat","last_synced_at":"2025-03-30T07:14:58.038Z","repository":{"id":57674717,"uuid":"188511902","full_name":"SiriusStarr/elm-splat","owner":"SiriusStarr","description":"Provides functions for unpacking lists items as arguments.","archived":false,"fork":false,"pushed_at":"2021-07-11T19:52:22.000Z","size":28,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-05T09:18:25.062Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Elm","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SiriusStarr.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":"2019-05-25T02:35:54.000Z","updated_at":"2021-07-11T19:52:24.000Z","dependencies_parsed_at":"2022-09-02T15:01:27.774Z","dependency_job_id":null,"html_url":"https://github.com/SiriusStarr/elm-splat","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/SiriusStarr%2Felm-splat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SiriusStarr%2Felm-splat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SiriusStarr%2Felm-splat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SiriusStarr%2Felm-splat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SiriusStarr","download_url":"https://codeload.github.com/SiriusStarr/elm-splat/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246285818,"owners_count":20752957,"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-23T10:55:22.908Z","updated_at":"2025-03-30T07:14:58.022Z","avatar_url":"https://github.com/SiriusStarr.png","language":"Elm","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Splat\n\n## Introduction\nThis package provides functions analogous to the \"splat\" operator in other\nlanguages, unpacking list elements into function arguments. All arguments must\nbe of the same type, given that lists cannot contain disparate types.\n\n\n## Functions\n\n### splat2 : (a -\u003e a -\u003e b) -\u003e List a -\u003e Maybe b\n\nUnpack the first 2 elements of a list as function arguments. Returns the\nresult as `Maybe`, with `Nothing` if the list is shorter than 2 elements or\n`Just result` if the list could be unpacked successfully. If the function\ntakes more than 2 arguments, the result will be a partially applied form of the\nfunction wrapped in `Just`.\n\nExample:\n\n```\nsplat2 String.append [ \"butter\", \"fly\" ] == Just \"butterfly\"\n```\n\n### splat3 : (a -\u003e a -\u003e a -\u003e b) -\u003e List a -\u003e Maybe b\n\nUnpack the first 3 elements of a list as function arguments. Returns the\nresult as `Maybe`, with `Nothing` if the list is shorter than 3 elements or\n`Just result` if the list could be unpacked successfully. If the function\ntakes more than 3 arguments, the result will be a partially applied form of the\nfunction wrapped in `Just`.\n\nExample:\n\n```\nsplat3 String.replace [ \",\", \"/\", \"a,b,c,d,e\" ] == Just \"a/b/c/d/e\"\n```\n\n### splat4 : (a -\u003e a -\u003e a -\u003e a -\u003e b) -\u003e List a -\u003e Maybe b\n\nUnpack the first 4 elements of a list as function arguments. Returns the\nresult as `Maybe`, with `Nothing` if the list is shorter than 4 elements or\n`Just result` if the list could be unpacked successfully. If the function\ntakes more than 4 arguments, the result will be a partially applied form of the\nfunction wrapped in `Just`.\n\n### splat5 : (a -\u003e a -\u003e a -\u003e a -\u003e a -\u003e b) -\u003e List a -\u003e Maybe b\n\nUnpack the first 5 elements of a list as function arguments. Returns the\nresult as `Maybe`, with `Nothing` if the list is shorter than 5 elements or\n`Just result` if the list could be unpacked successfully. If the function\ntakes more than 5 arguments, the result will be a partially applied form of the\nfunction wrapped in `Just`.\n\n### splat6 : (a -\u003e a -\u003e a -\u003e a -\u003e a -\u003e a -\u003e b) -\u003e List a -\u003e Maybe b\n\nUnpack the first 6 elements of a list as function arguments. Returns the\nresult as `Maybe`, with `Nothing` if the list is shorter than 6 elements or\n`Just result` if the list could be unpacked successfully. If the function\ntakes more than 6 arguments, the result will be a partially applied form of the\nfunction wrapped in `Just`.\n\n### splat7 : (a -\u003e a -\u003e a -\u003e a -\u003e a -\u003e a -\u003e a -\u003e b) -\u003e List a -\u003e Maybe b\n\nUnpack the first 7 elements of a list as function arguments. Returns the\nresult as `Maybe`, with `Nothing` if the list is shorter than 7 elements or\n`Just result` if the list could be unpacked successfully. If the function\ntakes more than 7 arguments, the result will be a partially applied form of the\nfunction wrapped in `Just`.\n\n### splat8 : (a -\u003e a -\u003e a -\u003e a -\u003e a -\u003e a -\u003e a -\u003e a -\u003e b) -\u003e List a -\u003e Maybe b\n\nUnpack the first 8 elements of a list as function arguments. Returns the\nresult as `Maybe`, with `Nothing` if the list is shorter than 8 elements or\n`Just result` if the list could be unpacked successfully. If the function\ntakes more than 8 arguments, the result will be a partially applied form of the\nfunction wrapped in `Just`.\n\n### splat9 : (a -\u003e a -\u003e a -\u003e a -\u003e a -\u003e a -\u003e a -\u003e a -\u003e a -\u003e b) -\u003e List a -\u003e Maybe b\n\nUnpack the first 9 elements of a list as function arguments. Returns the\nresult as `Maybe`, with `Nothing` if the list is shorter than 9 elements or\n`Just result` if the list could be unpacked successfully. If the function\ntakes more than 9 arguments, the result will be a partially applied form of the\nfunction wrapped in `Just`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsiriusstarr%2Felm-splat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsiriusstarr%2Felm-splat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsiriusstarr%2Felm-splat/lists"}