{"id":17993006,"url":"https://github.com/leostera/loop","last_synced_at":"2025-10-25T00:44:21.333Z","repository":{"id":206891704,"uuid":"717922197","full_name":"leostera/loop","owner":"leostera","description":"Unbounded loops with early breaks and continues for OCaml 5.","archived":false,"fork":false,"pushed_at":"2023-11-13T01:35:52.000Z","size":5,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-21T01:11:11.479Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"OCaml","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/leostera.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-11-13T01:22:06.000Z","updated_at":"2023-11-13T19:00:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"f5b27e41-6349-43e2-9cad-a08b82b52ab9","html_url":"https://github.com/leostera/loop","commit_stats":null,"previous_names":["leostera/loop"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leostera%2Floop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leostera%2Floop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leostera%2Floop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leostera%2Floop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leostera","download_url":"https://codeload.github.com/leostera/loop/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245571856,"owners_count":20637411,"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-10-29T20:09:54.912Z","updated_at":"2025-10-25T00:44:16.298Z","avatar_url":"https://github.com/leostera.png","language":"OCaml","funding_links":[],"categories":[],"sub_categories":[],"readme":"# loop\n\nA small control-flow utility for unbounded loops with support for `break` and\n`continue`ing loops.\n\nBy default it will loop infinitely, but it won't get in the way of unbounded\nexceptions or other unhandled effects.\n\n## Getting Started\n\n```\nopam install loop\n```\n\n## Usage\n\nThe usage should feel rather natural:\n\n1. start a loop\n2. call `continue` or `break` as you see fit\n\n### Examples\n\nHere's a small REPL:\n\n```ocaml\nlet repl () =\n  let open Loop in\n  loop (fun () -\u003e\n    let expr = read () in\n    let result = eval expr in\n    print result;\n    match result with\n    | Exit -\u003e break ()\n    | _ -\u003e ())\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleostera%2Floop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleostera%2Floop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleostera%2Floop/lists"}