{"id":17810388,"url":"https://github.com/sigma-andex/scala-fast-vect","last_synced_at":"2025-04-02T06:41:55.764Z","repository":{"id":113973483,"uuid":"580070859","full_name":"sigma-andex/scala-fast-vect","owner":"sigma-andex","description":" Fast 🐆, type-safe vectors for Scala ","archived":false,"fork":false,"pushed_at":"2023-01-03T21:12:30.000Z","size":13,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-07T21:26:12.076Z","etag":null,"topics":["dependent-types","scala","vect"],"latest_commit_sha":null,"homepage":"","language":"Scala","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sigma-andex.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2022-12-19T16:39:15.000Z","updated_at":"2023-11-24T12:17:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"727a76bf-823a-47db-9e98-7ba08b1cd608","html_url":"https://github.com/sigma-andex/scala-fast-vect","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/sigma-andex%2Fscala-fast-vect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sigma-andex%2Fscala-fast-vect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sigma-andex%2Fscala-fast-vect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sigma-andex%2Fscala-fast-vect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sigma-andex","download_url":"https://codeload.github.com/sigma-andex/scala-fast-vect/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246769984,"owners_count":20830769,"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":["dependent-types","scala","vect"],"created_at":"2024-10-27T15:33:13.784Z","updated_at":"2025-04-02T06:41:55.744Z","avatar_url":"https://github.com/sigma-andex.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"# scala-fast-vect 🐆\n\nFast, type-safe vector libary for Scala. This library is a port of my Purescript library [`purescript-fast-vect`](https://github.com/sigma-andex/purescript-fast-vect) and both libs are heavily inspired by [Idris](https://www.idris-lang.org/). A vector is list with its size encoded in the type.\n\n\n## Usage\n\n```scala\nimport fastvect.*\nimport fastvect.list.{given, *}\n\nval zero: Vect[0, String] = Vect.empty[String]\nval one: Vect[1, String] = Vect.singleton(\"a\")\nval h: String = one.head\nval as: Vect[100, String] = Vect.replicate[100, String](\"a\")\nval bs: Vect[200, String] = Vect.replicate[200, String](\"b\")\nval cs: Vect[300, String] = as ++ bs\nval ds = cs.drop[99]\nval es: String = as.index[99]\nval l1: String = Vect.singleton(\"a\").last\nval fives: Option[Vect[5, String]] =\n  Vect.from[5, String](List(\"a\", \"b\", \"c\", \"d\"))\nval xs: Vect[3, String] = (Vect.replicate(\"a\"): Vect[2, String]) :+ \"b\"\nval ys: Vect[4, String] = \"c\" +: xs\nval zs = Vect.from[5, Int](List(1,2,3,4))\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsigma-andex%2Fscala-fast-vect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsigma-andex%2Fscala-fast-vect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsigma-andex%2Fscala-fast-vect/lists"}