sstadick / rust-lapper

Rust implementation of a fast, easy, interval tree library nim-lapper
https://docs.rs/rust-lapper
MIT License
55 stars 7 forks source link

merge_overlaps loses values #21

Open jeffutter opened 9 months ago

jeffutter commented 9 months ago

merge_overlaps seems to take the value from the first Interval that overlaps and the other value is lost. I'm not sure the best way to handle this? Maybe a user-provided merge function that lets you create a new value when merging two ranges?

sstadick commented 9 months ago

Thanks for making an issue! That is a good point. a user provided merge function might be the way to go. I'm not planning on doing any work on this soon, always open to PRs, but will make sure something is included when a future release happens!