{"id":21470731,"url":"https://github.com/nhpip/curry-elixir","last_synced_at":"2025-03-17T06:44:45.137Z","repository":{"id":39704270,"uuid":"374828394","full_name":"nhpip/curry-elixir","owner":"nhpip","description":"Currying and partial application in Elixir","archived":false,"fork":false,"pushed_at":"2022-06-24T20:29:44.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-25T07:06:58.679Z","etag":null,"topics":["curry","currying","elixir","partial-application"],"latest_commit_sha":null,"homepage":"","language":"Elixir","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/nhpip.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":"2021-06-07T23:47:33.000Z","updated_at":"2022-06-09T14:04:11.000Z","dependencies_parsed_at":"2022-08-24T01:30:49.358Z","dependency_job_id":null,"html_url":"https://github.com/nhpip/curry-elixir","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nhpip%2Fcurry-elixir","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nhpip%2Fcurry-elixir/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nhpip%2Fcurry-elixir/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nhpip%2Fcurry-elixir/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nhpip","download_url":"https://codeload.github.com/nhpip/curry-elixir/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243988956,"owners_count":20379649,"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":["curry","currying","elixir","partial-application"],"created_at":"2024-11-23T09:28:52.049Z","updated_at":"2025-03-17T06:44:45.108Z","avatar_url":"https://github.com/nhpip.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Curry\n\nA simple module to do currying and partial application using Variadic functions to start partial evaluation (i.e. no lists needed).\n\nSee: https://github.com/nhpip/variadic-elixir\n\n## Example:\n\n**Currying:**\n ```\n    iex(9)\u003e curry_fun = curry(\u0026Curry.test3/3)\n    #Function\u003c0.51120925/1 in Curry.curry/1\u003e\n\n    iex(10)\u003e next_fun = curry_fun.(1)\n    #Function\u003c1.51120925/1 in Curry.do_generate_next/3\u003e\n\n    iex(11)\u003e next_fun = next_fun.(77)\n    #Function\u003c1.51120925/1 in Curry.do_generate_next/3\u003e\n\n    iex(12)\u003e next_fun_or_result = next_fun.(10)\n    {88, {1, 77, 10}}\n\n    iex(13\u003e info(curry_fun)\n    [\n      function: \u0026Curry.test3/3,\n      type: \"Currying\",\n      function_arity: 3,\n      args_still_needed: 3,\n      args_collected: 0\n    ]\n```\n\n**Partial application:**\n```\n    iex(20)\u003e partial_fun = partial(\u0026Curry.test5/5, 1, 2)\n    #Function\u003c19.126501267/3 in :erl_eval.expr/5\u003e\n\n    iex(21)\u003e info(partial_fun)\n    [\n      function: \u0026Curry.test5/5,\n      type: \"Partial application\",\n      function_arity: 5,\n      args_still_needed: 3,\n      args_collected: 2\n    ]\n\n    iex(22)\u003e partial_fun.(3, 4, 5)\n    {15, {1, 2, 3, 4, 5}}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnhpip%2Fcurry-elixir","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnhpip%2Fcurry-elixir","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnhpip%2Fcurry-elixir/lists"}