Replies: 2 comments
-
|
So would this be a different function altogether? for my reference this is the existing one I guess it would need to be if performance is significantly different? https://github.com/clojure/data.priority-map - clojure only, not cljc? if it can't work for cljs then a separate fn probably the way to go. It'd be interesting to see a few example usages. I was having a look and tbh the existing tests could have a bit more docs around them tick/test/tick/alpha/interval_test.cljc Line 467 in b96d4c4 alternatively, the readme could have a links section to 'more fns' or something |
Beta Was this translation helpful? Give feedback.
-
|
It could replace the original (ie. it is a superset of the original; it should return the same results for disjoint sets). Or, I might take a look at modifying the original (to keep its use of lazyseq). Good catch on priority-map being only clj. I have a cljc version in progress (based on https://github.com/shamsimam/clj-priority-queue), but when I tried swapping data.prority-map with clj-priority-queue in my project, it resulted in non-identical behaviour, which I have to investigate. This is still on my TODO. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I needed a version of difference that supports non-disjoint intervals. Would you be interested in adding this to tick?
Draft code below. Requires priority-map (see comment).
Will include tests if you want this added in.
Beta Was this translation helpful? Give feedback.
All reactions