Re: priority-map pop issue

2012-11-21 Thread JvJ
Thanks. I wasn't sure if that applied to priority maps as well. On Wednesday, 21 November 2012 21:35:54 UTC-5, puzzler wrote: > > As per the other thread, remember that in Clojure sorted collections only > function properly when given a function that obeys the trichotomy property > (exactly one

Re: priority-map pop issue

2012-11-21 Thread Mark Engelberg
As per the other thread, remember that in Clojure sorted collections only function properly when given a function that obeys the trichotomy property (exactly one of the following hold: a wrote: > I'm not sure if this is an error or not, but priority-maps behaves > strangely when given a function l

priority-map pop issue

2012-11-21 Thread JvJ
I'm not sure if this is an error or not, but priority-maps behaves strangely when given a function like <=. (pop (priority-map-by <= :a 1 :b 2 :c 3)) => {:a 1 :b 2 :c 3} ;; First element isn't popped. Is this supposed to happen? -- You received this message because you are subscribed to the Go