{"id":16870211,"url":"https://github.com/metagn/sliceutils","last_synced_at":"2025-10-19T15:32:49.615Z","repository":{"id":149520087,"uuid":"314218255","full_name":"metagn/sliceutils","owner":"metagn","description":"Utilities using Slice","archived":false,"fork":false,"pushed_at":"2023-08-11T12:24:30.000Z","size":48,"stargazers_count":5,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-14T15:03:10.863Z","etag":null,"topics":["iterators","library","nim","ordinals","slice","utilities"],"latest_commit_sha":null,"homepage":"https://metagn.github.io/sliceutils/docs/sliceutils.html","language":"Nim","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/metagn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":"metagn","custom":"https://www.buymeacoffee.com/metagn"}},"created_at":"2020-11-19T10:50:44.000Z","updated_at":"2024-09-12T13:20:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"3379aea9-b664-4d1c-bbbe-e6fe95107243","html_url":"https://github.com/metagn/sliceutils","commit_stats":{"total_commits":16,"total_committers":3,"mean_commits":5.333333333333333,"dds":0.375,"last_synced_commit":"f5729ca144ca37241ba70542049437f9938317b4"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metagn%2Fsliceutils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metagn%2Fsliceutils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metagn%2Fsliceutils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metagn%2Fsliceutils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/metagn","download_url":"https://codeload.github.com/metagn/sliceutils/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244290454,"owners_count":20429363,"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":["iterators","library","nim","ordinals","slice","utilities"],"created_at":"2024-10-13T15:03:12.986Z","updated_at":"2025-10-19T15:32:44.565Z","avatar_url":"https://github.com/metagn.png","language":"Nim","readme":"# sliceutils\n\nNimble package for extensions on Slice/HSlice. Features include:\n\n* `sliceutils/tuples`: indexing tuples by backwards index and by slices of ordinals or backwards indexes\n* `sliceutils/strides`: slice type with custom increments other than 1\n* `sliceutils/until`: slice utility type that counts every element except the last one, made with floats in mind\n* `sliceutils/intslices`: utility procedures for integer slices\n  - subscript indexing for integer slices with ordinals, backwards indexes, or slices of ordinals or backwards indexes\n  - `diff(HSlice[T, U: SomeInteger]): int`: the distance between the 2 bounds, has alias `abs`\n* `sliceutils/general`: procedures for generic slices, examples being\n  - `to(T, U) -\u003e HSlice[T, U]`: alternate constructor for slices\n  - `swap(HSlice[T, U]) -\u003e HSlice[U, T]`: swaps the bounds of the slice\n  - `sort(Slice[T]) -\u003e Slice[T]`: gives the bounds ascending order\n  - `span(HSlice[T, U]) -\u003e int`: alias for `system.len` as `len` in this package means \"number of results of an iteration\"\n  - `spans(HSlice[T, U], V) -\u003e bool`: alias for `system.contains` as `contains` in this package means \"is one of the given values of an iteration\"\n  - `@(HSlice[T, U]) -\u003e seq`: makes seq from slice, iterations must match `len`\n\n`import sliceutils` imports all of these modules.\n\nTests are ran for multiple backends.\n\nWarning: This package overuses the type system a bit and breaks very easily for versions below 1.4.0. Even on 1.4.0, you may come across Nim bugs.\n","funding_links":["https://github.com/sponsors/metagn","https://www.buymeacoffee.com/metagn"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmetagn%2Fsliceutils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmetagn%2Fsliceutils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmetagn%2Fsliceutils/lists"}