{"id":15592134,"url":"https://github.com/derhuerst/flatten-overlapping-ranges-rs","last_synced_at":"2025-09-09T15:36:54.525Z","repository":{"id":57630307,"uuid":"118294494","full_name":"derhuerst/flatten-overlapping-ranges-rs","owner":"derhuerst","description":"Flatten overlapping ranges into a sequence of sections.","archived":false,"fork":false,"pushed_at":"2018-01-21T01:31:06.000Z","size":8,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-25T00:30:24.481Z","etag":null,"topics":["flatten","intervals","merge","overlap","ranges"],"latest_commit_sha":null,"homepage":"https://github.com/derhuerst/flatten-overlapping-ranges-rs#flatten-overlapping-ranges-rs","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/derhuerst.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-01-21T01:16:56.000Z","updated_at":"2022-04-16T21:29:47.000Z","dependencies_parsed_at":"2022-09-26T20:11:27.675Z","dependency_job_id":null,"html_url":"https://github.com/derhuerst/flatten-overlapping-ranges-rs","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/derhuerst%2Fflatten-overlapping-ranges-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derhuerst%2Fflatten-overlapping-ranges-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derhuerst%2Fflatten-overlapping-ranges-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derhuerst%2Fflatten-overlapping-ranges-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/derhuerst","download_url":"https://codeload.github.com/derhuerst/flatten-overlapping-ranges-rs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":232925243,"owners_count":18597653,"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":["flatten","intervals","merge","overlap","ranges"],"created_at":"2024-10-02T23:55:36.701Z","updated_at":"2025-01-07T19:26:00.987Z","avatar_url":"https://github.com/derhuerst.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# flatten-overlapping-ranges-rs\n\n**Flatten overlapping ranges into a sequence of sections.**\n\n```\n---A---     ---D---\n  -----B------\n     --C--\n```\n\n```\n-- --- -- --- -- -- -----\nA  A   A         D  D\n   B   B  B   B  B\n       C  C\n```\n\nMy first [crate](https://crates.io)! 🙌\n\n[![crates.io version](https://img.shields.io/crates/v/flatten_overlapping_ranges.svg)](https://crates.io/crates/flatten_overlapping_ranges)\n[![build status](https://api.travis-ci.org/derhuerst/flatten-overlapping-ranges-rs.svg?branch=master)](https://travis-ci.org/derhuerst/flatten-overlapping-ranges-rs)\n![ISC-licensed](https://img.shields.io/github/license/derhuerst/flatten-overlapping-ranges-rs.svg)\n[![chat on gitter](https://badges.gitter.im/derhuerst.svg)](https://gitter.im/derhuerst)\n\n\n## Installing\n\nPut this into your `Cargo.toml`:\n\n```toml\nflatten_overlapping_ranges = \"0.1.0\"\n```\n\n\n## Usage\n\n```rust\nuse flatten_overlapping_ranges::flatten;\n\nlet simple: Vec\u003c(\u0026char, usize, usize)\u003e = vec![\n    (\u0026'a', 0, 7),\n    (\u0026'b', 2, 12),\n    (\u0026'c', 5, 5),\n    (\u0026'd', 12, 7)\n];\n\nprintln!(\"{:?}\", flatten(\u0026simple));\n```\n\n```\n[\n\t(2, ['a']),\n\t(3, ['a', 'b']),\n\t(2, ['a', 'b', 'c']),\n\t(3, ['b', 'c']),\n\t(2, ['b']),\n\t(2, ['b', 'd']),\n\t(5, ['d'])\n]\n```\n\n\n## Contributing\n\nThis is the first Rust code I've ever written, so be kind! 🙈\n\nIf you have a question or have difficulties using flatten-overlapping-ranges-rs, please double-check your code and setup first. If you think you have found a bug or want to propose a feature, refer to [the issues page](https://github.com/derhuerst/flatten-overlapping-ranges-rs/issues).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fderhuerst%2Fflatten-overlapping-ranges-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fderhuerst%2Fflatten-overlapping-ranges-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fderhuerst%2Fflatten-overlapping-ranges-rs/lists"}