{"id":32166956,"url":"https://github.com/openapi-ro/rangex","last_synced_at":"2025-10-21T15:15:36.063Z","repository":{"id":57539755,"uuid":"120085034","full_name":"openapi-ro/rangex","owner":"openapi-ro","description":"Range Calculations for elixir","archived":false,"fork":false,"pushed_at":"2020-03-09T19:06:05.000Z","size":29,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-09-20T06:11:04.668Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://hex.pm/packages/rangex","language":"Elixir","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/openapi-ro.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}},"created_at":"2018-02-03T11:29:36.000Z","updated_at":"2020-03-09T19:06:07.000Z","dependencies_parsed_at":"2022-09-26T18:31:49.451Z","dependency_job_id":null,"html_url":"https://github.com/openapi-ro/rangex","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/openapi-ro/rangex","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openapi-ro%2Frangex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openapi-ro%2Frangex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openapi-ro%2Frangex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openapi-ro%2Frangex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/openapi-ro","download_url":"https://codeload.github.com/openapi-ro/rangex/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openapi-ro%2Frangex/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280283279,"owners_count":26304068,"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","status":"online","status_checked_at":"2025-10-21T02:00:06.614Z","response_time":58,"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":"2025-10-21T15:15:31.218Z","updated_at":"2025-10-21T15:15:36.055Z","avatar_url":"https://github.com/openapi-ro.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rangex\n\nRangeEx is a Library for working with ranges.\nRanges can be of different types, while the examples here are used using `{from,to}` `Tuple`s.\n\n```\nalias Rangex.RangeList\nrange_list =[{1,10}, {20,30}]\n```\n\nNow, given the above list we could insert a new range:\n```\niex(3)\u003e range_list=RangeList.add_range range_list , {11,19}\n[{1, 10}, {11, 19}, {20, 30}]\n\n```\n\nNow if you insert `{10,11}` the first two ranges are combined into one:\n\n```\niex(5)\u003e range_list=RangeList.add_range range_list , {10,11}\n[{1, 19}, {20, 30}]\n```\n\nThis is just a short example, more documentation can be found in Hex.pm\n\n## Installation\n\nIf [available in Hex](https://hex.pm/docs/publish), the package can be installed\nby adding `rangex` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [\n    {:rangex, \"~\u003e 0.1.0\"}\n  ]\nend\n```\n\nDocumentation can be generated with [ExDoc](https://github.com/elixir-lang/ex_doc)\nand published on [HexDocs](https://hexdocs.pm). Once published, the docs can\nbe found at [https://hexdocs.pm/rangex](https://hexdocs.pm/rangex).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenapi-ro%2Frangex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopenapi-ro%2Frangex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenapi-ro%2Frangex/lists"}