{"id":19773220,"url":"https://github.com/mbarbin/letfun","last_synced_at":"2026-03-19T11:36:49.188Z","repository":{"id":239577166,"uuid":"799917004","full_name":"mbarbin/letfun","owner":"mbarbin","description":"Use let-binding with functions whose last argument is a closure","archived":false,"fork":false,"pushed_at":"2025-10-17T12:47:05.000Z","size":54,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-18T15:49:47.607Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Dune","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/mbarbin.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-05-13T11:00:38.000Z","updated_at":"2025-10-17T12:45:33.000Z","dependencies_parsed_at":"2024-06-02T10:51:51.273Z","dependency_job_id":"b235f4e8-8d7a-4eee-b661-0463836d2106","html_url":"https://github.com/mbarbin/letfun","commit_stats":null,"previous_names":["mbarbin/letfun"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/mbarbin/letfun","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbarbin%2Fletfun","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbarbin%2Fletfun/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbarbin%2Fletfun/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbarbin%2Fletfun/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mbarbin","download_url":"https://codeload.github.com/mbarbin/letfun/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbarbin%2Fletfun/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30161345,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T22:39:40.138Z","status":"online","status_checked_at":"2026-03-06T02:00:08.268Z","response_time":250,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-12T05:09:00.121Z","updated_at":"2026-03-06T04:04:10.302Z","avatar_url":"https://github.com/mbarbin.png","language":"Dune","funding_links":[],"categories":[],"sub_categories":[],"readme":"# letfun\n\n`letfun` is a tiny library which allows you to use a let-binding style to handle functions applications that expects their last argument to be a closure. It uses for this the `let\u0026` operator.\n\nFor example:\n\n```ocaml\nlet print_hello_world file =\n  Out_channel.with_open_text file (fun oc -\u003e\n    Out_channel.output_string oc \"Hello, \";\n    Out_channel.output_string oc \"World\\n\")\n```\n\nCan be rewritten as:\n\n```ocaml\nlet print_hello_world file =\n  let open Letfun in\n  let\u0026 oc = Out_channel.with_open_text file in\n  Out_channel.output_string oc \"Hello, \";\n  Out_channel.output_string oc \"World\\n\"\n```\n\nNote that many projects use the `@@` operator in certain situations:\n\n```ocaml\nlet print_hello_world file =\n  Out_channel.with_open_text file\n  @@ fun oc -\u003e\n  Out_channel.output_string oc \"Hello, \";\n  Out_channel.output_string oc \"World\\n\"\n```\n\n:warning: This library is highly experimental, do not use!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmbarbin%2Fletfun","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmbarbin%2Fletfun","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmbarbin%2Fletfun/lists"}