add next/prev values to ordered-range-value building

put the previous value on the start boundaries and a the next
value on the end boundaries
This commit is contained in:
2026-01-11 16:50:17 -06:00
parent 98a9fd43fe
commit caf5bda249
2 changed files with 38 additions and 30 deletions

View File

@@ -49,10 +49,12 @@
(mapcat (fn [range]
[{:value (start range)
:boundary-type :start
:type (range-type range)}
:type (range-type range)
:prev-value (value-before range)}
{:value (end range)
:boundary-type :end
:type (range-type range)}]))
:type (range-type range)
:next-value (value-after range)}]))
(sort-by (juxt :value (comp {:start 0 :end 1} :boundary-type)))))
(defmulti ->discrete-value-range (fn [range-type _start _end]