{"id":13726106,"url":"https://github.com/aionescu/vec","last_synced_at":"2025-10-30T22:12:51.700Z","repository":{"id":50050041,"uuid":"250968874","full_name":"aionescu/vec","owner":"aionescu","description":"Fast, safe mutable dynamic arrays for OCaml","archived":false,"fork":false,"pushed_at":"2024-01-18T22:36:55.000Z","size":685,"stargazers_count":28,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-14T16:45:04.879Z","etag":null,"topics":["collections","ocaml","polymorphic-variants","vectors"],"latest_commit_sha":null,"homepage":"","language":"OCaml","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aionescu.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","contributing":null,"funding":null,"license":"LICENSE.txt","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}},"created_at":"2020-03-29T06:29:01.000Z","updated_at":"2024-11-05T00:27:04.000Z","dependencies_parsed_at":"2024-01-17T19:19:28.108Z","dependency_job_id":"f2f016f7-2013-411e-a5eb-743982e35a22","html_url":"https://github.com/aionescu/vec","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aionescu%2Fvec","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aionescu%2Fvec/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aionescu%2Fvec/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aionescu%2Fvec/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aionescu","download_url":"https://codeload.github.com/aionescu/vec/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227741796,"owners_count":17812914,"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":["collections","ocaml","polymorphic-variants","vectors"],"created_at":"2024-08-03T01:02:52.755Z","updated_at":"2025-10-30T22:12:46.668Z","avatar_url":"https://github.com/aionescu.png","language":"OCaml","readme":"# vec\n\n[![OPAM](https://img.shields.io/badge/dynamic/json?color=blue\u0026label=OPAM\u0026style=for-the-badge\u0026logo=ocaml\u0026prefix=v\u0026query=version\u0026url=https%3A%2F%2Fraw.githubusercontent.com%2Faionescu%2Fvec%2Fmain%2Fbadge%2Fversion.json)](https://opam.ocaml.org/packages/vec/)\n\nFast, safe mutable dynamic arrays for OCaml.\n\nYou can find API documentation [here](https://aionescu.github.io/vec/docs/vec/Vec/index.html).\n\n## Summary\n\nThe idea behind this library is to provide efficient, mutable dynamic arrays with Rust-like mutability permissions.\n\nTo achieve this, the `Vec.t` type uses a polymorphic variant as a phantom type parameter, which is ``[`R | `W]`` for read-write vectors,\n``[`R]`` for read-only vectors, or ``[`W]`` for write-only vectors.\n\nAll functions defined in the `Vec` module are polymorphic in this type parameter, only requiring it to contain each function's needed capability.\n\nFor example, functions that only read data from a vector accept a ``('a, [\u003e `R]) Vec.t`` parameter,\nso both ``[`R]`` vectors and ``[`R | `W]`` vectors can be passed.\n\n## Installing\n\nThe package can be found on OPAM [here](https://opam.ocaml.org/packages/vec/).\n\nTo install it, run:\n\n```sh\nopam install vec\n```\n\n## Building from source\n\nTo build the project and run the test suite, run the following in the root of the repository:\n\n```sh\ndune build @doc @runtest\n```\n\n## License\n\nThis repository is licensed under the terms of the GNU General Public License v3.\n\nFor more details, see [the license file](LICENSE.txt).\n","funding_links":[],"categories":["OCaml"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faionescu%2Fvec","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faionescu%2Fvec","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faionescu%2Fvec/lists"}