{"id":13803825,"url":"https://github.com/pakoito/RxCurrying","last_synced_at":"2025-05-13T16:32:35.571Z","repository":{"id":139227800,"uuid":"51719162","full_name":"pakoito/RxCurrying","owner":"pakoito","description":"Simple currying for FuncN and ActionN on RxJava [STABLE]","archived":false,"fork":false,"pushed_at":"2017-03-22T00:08:15.000Z","size":65,"stargazers_count":38,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-14T06:09:22.797Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pakoito.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-02-14T23:24:16.000Z","updated_at":"2021-04-08T20:19:23.000Z","dependencies_parsed_at":"2024-01-03T01:29:54.318Z","dependency_job_id":"e9f50049-a5c4-4360-87de-af3e5786a2ec","html_url":"https://github.com/pakoito/RxCurrying","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pakoito%2FRxCurrying","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pakoito%2FRxCurrying/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pakoito%2FRxCurrying/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pakoito%2FRxCurrying/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pakoito","download_url":"https://codeload.github.com/pakoito/RxCurrying/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253981950,"owners_count":21994364,"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-08-04T01:00:38.212Z","updated_at":"2025-05-13T16:32:30.561Z","avatar_url":"https://github.com/pakoito.png","language":"Java","funding_links":[],"categories":["Utilities"],"sub_categories":[],"readme":"# RxCurrying\n\nRxCurrying is a library to allow [currying](https://en.wikipedia.org/wiki/Currying) on RxJava function primitives.\n\nFor the RxJava 2.X version, please go to [RxCurrying2](https://github.com/pakoito/RxCurrying2).\n\n## Usage\n\nRxCurrying contains two classes, `RxCurryingAction` and `RxCurryingFunc`. Each contains a set of `curry()` methods to do split any function into its curried version. Curried methods allows calling them one parameter at a time, and execute them at the end. For example, a `Func3\u003cA, B, C, R\u003e` becomes a `Func1\u003cA, Func1\u003cB, Func1\u003cC, R\u003e\u003e\u003e`, or an `Action4\u003cA, B, C, D\u003e` becomes `Func1\u003cA, Func1\u003cB, Func1\u003cC, Action1\u003cD\u003e\u003e\u003e`.\n\nFunction to print the sum of two numbers:\n```java\nFunc1\u003cInteger, Action1\u003cInteger\u003e\u003e adder = RxCurryingAction.curry((int first, int second) -\u003e { System.out.print(first + second); });\nAction1\u003cInteger\u003e intermediate = adder.call(3);\nintermediate.call(2);  // prints 5\n```\n\nAppend 5 strings:\n```java\nFunc1\u003cString, Func1\u003cString, Func1\u003cString, Func1\u003cString, Func1\u003cString, String\u003e\u003e\u003e\u003e\u003e appender = RxCurryingFunc.curry((String first, String second, String third, String fourth, String fifth) -\u003e { return first + second + third + fourth + fifth; );\nFunc1\u003cString, String\u003e intermediate = appender.call(\"Hello \").call(\"This \").call(\"Is \").call(\"Curried \");\nString value = last.call(\"Func\"); // value == \"Hello This is Curried Func\"\n```\n\n## Distribution\n\nAdd as a dependency to your `build.gradle`\n```groovy\nrepositories {\n    ...\n    maven { url \"https://jitpack.io\" }\n    ...\n}\n\ndependencies {\n    ...\n    compile 'com.github.pakoito:RxCurrying:1.1.0'\n    ...\n}\n```\nor to your `pom.xml`\n```xml\n\u003crepositories\u003e\n    \u003crepository\u003e\n        \u003cid\u003ejitpack.io\u003c/id\u003e\n        \u003curl\u003ehttps://jitpack.io\u003c/url\u003e\n    \u003c/repository\u003e\n\u003c/repositories\u003e\n\n\u003cdependency\u003e\n    \u003cgroupId\u003ecom.github.pakoito\u003c/groupId\u003e\n    \u003cartifactId\u003eRxCurrying\u003c/artifactId\u003e\n    \u003cversion\u003e1.1.0\u003c/version\u003e\n\u003c/dependency\u003e\n```\n## License\n\nCopyright (c) pakoito 2016\n\nThe Apache Software License, Version 2.0\n\nSee LICENSE.md\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpakoito%2FRxCurrying","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpakoito%2FRxCurrying","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpakoito%2FRxCurrying/lists"}