Commit Graph

8 Commits

Author SHA1 Message Date
d0c78810f0 add transducer step to combine abutting ranges
ranges have previously been consolidated by having overlapping ranges be
combined, resuting in a (possibly) consolidated set of ranges, which
are now ordered by start and end dates.

Add a transducer step to walk those ranges and find any pairs of ranges
where the pair of ranges abutt each other, and combine them into
a single range.
2026-01-10 18:34:09 -06:00
98761a79ea consolidate overlapping ranges
transduce over the ordered range values starts and ends and do the
stack push/pop matching over the start and end values to consolidate
the overlapping ranges and result in a new set of consolidated and
sorted range values.
2026-01-10 18:04:33 -06:00
725906c2e8 create ordered sequence of the given ranges' start and end values 2026-01-10 17:21:22 -06:00
2f654bc1e2 start of protocol for discrete value ranges 2026-01-10 17:08:52 -06:00
Chris Hapgood
73731422c2 Add bonus test for unbounded ranges 2024-06-12 23:01:27 -04:00
Chris Hapgood
7a9cd81fb6 Add README and example test 2024-06-06 17:29:49 -04:00
Chris Hapgood
44aa7c8efd Add the performance test
It takes ~12 seconds to complete the performance test on a 2023 MacBook Pro
with an Apple M2 Pro processor and 32G of RAM.
2024-06-06 17:01:14 -04:00
Chris Hapgood
92f61a3b69 Create initial project structure with tests and reader 2024-06-06 15:38:31 -04:00