{"id":20642691,"url":"https://github.com/typelift/operadics","last_synced_at":"2025-07-25T23:35:11.405Z","repository":{"id":34747665,"uuid":"38727524","full_name":"typelift/Operadics","owner":"typelift","description":"Standard Operators for the working Swift Librarian.","archived":false,"fork":false,"pushed_at":"2021-11-13T21:15:20.000Z","size":15,"stargazers_count":98,"open_issues_count":2,"forks_count":14,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-12T22:03:17.139Z","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/typelift.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":"2015-07-08T02:39:07.000Z","updated_at":"2024-10-11T17:05:10.000Z","dependencies_parsed_at":"2022-08-02T23:15:38.841Z","dependency_job_id":null,"html_url":"https://github.com/typelift/Operadics","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typelift%2FOperadics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typelift%2FOperadics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typelift%2FOperadics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typelift%2FOperadics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/typelift","download_url":"https://codeload.github.com/typelift/Operadics/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249182808,"owners_count":21226123,"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-11-16T16:09:55.455Z","updated_at":"2025-04-16T01:42:42.364Z","avatar_url":"https://github.com/typelift.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Operadics\nStandard Operators for the working Swift Librarian.\n\nOperators\n---------\n\nOperadics introduces the following operators at global scope\n\nOperator | Name           | Recommended Type\n-------- | -------------- | ------------------------------------------\n`•`      | compose        | `•     \u003cA, B, C\u003e(B -\u003e C, A -\u003e B) -\u003e A -\u003e C`\n`§`      | apply          | `§     \u003cA, B\u003e(A -\u003e B, A) -\u003e B`\n`\u003c\\|`    | apply          | `\u003c\\|    \u003cA, B\u003e(A -\u003e B, A) -\u003e B`\n`\\|\u003e`    | thrush         | `\\|\u003e    \u003cA, B\u003e(A, A -\u003e B) -\u003e B`\n`\u003c-`     | extract        | `\u003c-    \u003cA\u003e(M\u003cA\u003e, A) -\u003e Void`\n`\\|*\\|`  | on             | `\\|*\\|   \u003cA, B, C\u003e((B, B) -\u003e C, A -\u003e B) -\u003e A -\u003e A -\u003e C`\n`\u003c\u003e`     | op             | `\u003c\u003e    \u003cA : Monoid\u003e(A, A) -\u003e A`\n`\u003c^`     | replace        | `\u003c^    \u003cA, B\u003e(A, F\u003cB\u003e) -\u003e F\u003cA\u003e`\n`^\u003e`     | replace        | `^\u003e    \u003cA, B\u003e(F\u003cA\u003e, B) -\u003e F\u003cB\u003e`\n`\u003c^\u003e`    | fmap           | `\u003c^\u003e   \u003cA, B\u003e(A -\u003e B, F\u003cA\u003e) -\u003e F\u003cB\u003e`\n`\u003c^^\u003e`   | imap           | `\u003c^^\u003e  \u003cI, J, A\u003e(I -\u003e J, F\u003cI, A\u003e) -\u003e F\u003cJ, A\u003e`\n`\u003c!\u003e`    | contramap      | `\u003c^\u003e   \u003cI, J, A\u003e(J -\u003e I, F\u003cI, A\u003e) -\u003e F\u003cJ, A\u003e`\n`\u003c*\u003e`    | apply          | `\u003c*\u003e   \u003cA, B\u003e(F\u003cA -\u003e B\u003e, F\u003cA\u003e) -\u003e F\u003cB\u003e`\n`\u003e\u003e-`    | bind           | `\u003e\u003e-   \u003cA, B\u003e(F\u003cA\u003e, A -\u003e F\u003cB\u003e) -\u003e F\u003cB\u003e`\n`-\u003c\u003c`    | bind           | `-\u003c\u003c   \u003cA, B\u003e(A -\u003e F\u003cB\u003e, F\u003cA\u003e) -\u003e F\u003cB\u003e`\n`\u003e\u003e-\u003e\u003e`  | Kleisli        | `\u003e\u003e-\u003e\u003e \u003cA, B, C\u003e(A -\u003e F\u003cB\u003e, B -\u003e F\u003cC\u003e) -\u003e A -\u003e F\u003cC\u003e`\n`\u003c\u003c-\u003c\u003c`  | Kleisli        | `\u003c\u003c-\u003c\u003c \u003cA, B, C\u003e(B -\u003e F\u003cC\u003e, A -\u003e F\u003cB\u003e) -\u003e A -\u003e F\u003cC\u003e`\n`-\u003e\u003e`    | extend         | `-\u003e\u003e   \u003cA, B\u003e(F\u003cA\u003e, F\u003cA\u003e -\u003e B) -\u003e F\u003cB\u003e`\n`\u003c\u003c\u003c`    | r-t-l compose  | `\u003c\u003c\u003c   \u003cC, A, B, C\u003e(C\u003cB, C\u003e, C\u003cA, B\u003e) -\u003e C\u003cA, C\u003e` \n`\u003e\u003e\u003e`    | l-t-r compose  | `\u003e\u003e\u003e   \u003cC, A, B, C\u003e(C\u003cA, B\u003e, C\u003cB, C\u003e) -\u003e C\u003cA, C\u003e` \n`\u0026\u0026\u0026`    | split          | `\u0026\u0026\u0026   \u003cA, B, C, D\u003e(A\u003cB, C\u003e, A\u003cB, D\u003e) -\u003e A\u003cB, (C, D)\u003e` \n`***`    | fanout         | `***   \u003cA, B, C, D, E\u003e(A\u003cB, C\u003e, A\u003cD, E\u003e) -\u003e A\u003c(B, D), (C, E)\u003e` \n`+++`    | splat          | `+++   \u003cA, B, C, D, E\u003e(A\u003cB, C\u003e, A\u003cD, E\u003e) -\u003e A\u003cEither\u003cD, B\u003e, Either\u003cC, E\u003e\u003e`\n`\\|\\|\\|` | fanin          | `\\|\\|\\|   \u003cA, B, C, D, E\u003e(A\u003cB, D\u003e, A\u003cC, D\u003e) -\u003e A\u003cEither\u003cB, C\u003e, D\u003e`\n`\u003c+\u003e`    | op             | `\u003c+\u003e   \u003cA, B, C\u003e(A\u003cB, C\u003e, A\u003cB, C\u003e) -\u003e A\u003cB, C\u003e`\n`\u003c?`     | retrieve       | `\u003c?    \u003cA : JSONDecodable\u003e(JSONValue, JSONKeypath) -\u003e A?` \n`\u003c??`    | opt retrieve   | `\u003c??   \u003cA : JSONDecodable\u003e(JSONValue, JSONKeypath) -\u003e A??` \n`\u003c!`     | force retrieve | `\u003c!    \u003cA : JSONDecodable\u003e(JSONValue, JSONKeypath) -\u003e A` \n`∪`      | union          | `∪     \u003cA\u003e(Set\u003cA\u003e, Set\u003cA\u003e) -\u003e Set\u003cA\u003e`\n`∩`      | intersect      | `∩     \u003cA\u003e(Set\u003cA\u003e, Set\u003cA\u003e) -\u003e Set\u003cA\u003e`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftypelift%2Foperadics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftypelift%2Foperadics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftypelift%2Foperadics/lists"}