Function intended to work with intervals
Function intended to work with intervals
(merge-overlapping-intervals interval-seq)Given a list of intervals, merge all the overlapping intervals into one.
Example:
(merge-overlapping-intervals [[1 3] [2 4] [6 8] [9 10]]) ;; => [[1 4] [6 8] [9 10]]
Given a list of intervals, merge all the overlapping intervals into one. Example: (merge-overlapping-intervals [[1 3] [2 4] [6 8] [9 10]]) ;; => [[1 4] [6 8] [9 10]]
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |