{"id":18423555,"url":"https://github.com/chadtech/tuple-infix","last_synced_at":"2025-04-13T14:45:49.491Z","repository":{"id":57674538,"uuid":"109592468","full_name":"Chadtech/tuple-infix","owner":"Chadtech","description":"Infix functions to tuple in Elm","archived":false,"fork":false,"pushed_at":"2017-12-04T03:43:40.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-16T07:42:07.613Z","etag":null,"topics":["elm"],"latest_commit_sha":null,"homepage":"http://package.elm-lang.org/packages/Chadtech/tuple-infix/latest","language":"Elm","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/Chadtech.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":"2017-11-05T15:41:11.000Z","updated_at":"2019-08-15T15:54:48.000Z","dependencies_parsed_at":"2022-08-29T17:41:06.921Z","dependency_job_id":null,"html_url":"https://github.com/Chadtech/tuple-infix","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chadtech%2Ftuple-infix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chadtech%2Ftuple-infix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chadtech%2Ftuple-infix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chadtech%2Ftuple-infix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Chadtech","download_url":"https://codeload.github.com/Chadtech/tuple-infix/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248732346,"owners_count":21152842,"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":["elm"],"created_at":"2024-11-06T04:37:46.102Z","updated_at":"2025-04-13T14:45:49.458Z","avatar_url":"https://github.com/Chadtech.png","language":"Elm","readme":"# Tuple-Infix  (\u0026, :=)\n\n\nIn nearly all of my Elm projects, I use these two infix functions: `\u0026` and `:=`. They both tuple, but I use them differently. `\u0026` is used just to tuple two random things, like at the end of an update function.\n\n```elm\n  Noop -\u003e\n    model \u0026 Cmd.none\n```\n`:=` I use whenever the tuple is being used to \"define\" the left value as the right, as I do in inline styles and json encoding (`\"left\" = \"16px\"` or `\"type\" := Encode.string type_`)\n\n```elm\n  div\n    [ style [ \"left\" := \"40px\" ] ]\n    []\n\npackJsMsg : String -\u003e Encode.Value -\u003e Encode.Value\npackJsMsg type_ payload =\n  [ \"type\" := Encode.string type_\n  , \"payload\" := payload\n  ]\n    |\u003e Encode.object\n```\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchadtech%2Ftuple-infix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchadtech%2Ftuple-infix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchadtech%2Ftuple-infix/lists"}