File tree Expand file tree Collapse file tree 3 files changed +7
-6
lines changed
Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ produces the entries sorted by value.
1313### Dependency
1414
1515``` clojure
16- [tailrecursion/cljs-priority-map " 1.0.2 " ]
16+ [tailrecursion/cljs-priority-map " 1.0.3 " ]
1717```
1818
1919### Example
Original file line number Diff line number Diff line change 1- (defproject tailrecursion /cljs-priority-map " 1.0.2 "
1+ (defproject tailrecursion /cljs-priority-map " 1.0.3 "
22 :description " ClojureScript priority map implementation based on clojure.data.priority-map"
33 :url " https://github.com/tailrecursion/cljs-priority-map"
44 :license {:name " Eclipse Public License"
77 :plugins [[lein-cljsbuild " 0.3.0" ]]
88 :cljsbuild {:builds {:test
99 {:source-paths [" test" ]
10+ :dependencies [[org.clojure/clojurescript " 0.0-1934" ]]
1011 :compiler {:output-to " public/test.js"
1112 :optimizations :advanced }
1213 :jar false }}})
Original file line number Diff line number Diff line change 2525
2626 IEmptyableCollection
2727 (-empty [this] (with-meta
28- tailrecursion.priority-map.PersistentPriorityMap/ EMPTY
28+ tailrecursion.priority-map.PersistentPriorityMap. EMPTY
2929 meta))
3030
3131 IEquiv
147147 (-invoke [this item not-found]
148148 (-lookup this item not-found)))
149149
150- (set! tailrecursion.priority-map.PersistentPriorityMap/ EMPTY
150+ (set! tailrecursion.priority-map.PersistentPriorityMap. EMPTY
151151 (PersistentPriorityMap. (sorted-map ) {} {} nil ))
152152
153153(defn- pm-empty-by [comparator]
154154 (PersistentPriorityMap. (sorted-map-by comparator) {} {} nil ))
155155
156156(defn- read-priority-map [elems]
157157 (if (map? elems)
158- (into tailrecursion.priority-map.PersistentPriorityMap/ EMPTY elems)
158+ (into tailrecursion.priority-map.PersistentPriorityMap. EMPTY elems)
159159 (reader-error nil " Priority map literal expects a map for its elements." )))
160160
161161(register-tag-parser! " tailrecursion.priority-map" read-priority-map)
164164 " keyval => key val
165165 Returns a new priority map with supplied mappings."
166166 ([& keyvals]
167- (loop [in (seq keyvals) out tailrecursion.priority-map.PersistentPriorityMap/ EMPTY]
167+ (loop [in (seq keyvals) out tailrecursion.priority-map.PersistentPriorityMap. EMPTY]
168168 (if in
169169 (recur (nnext in) (assoc out (first in) (second in)))
170170 out))))
You can’t perform that action at this time.
0 commit comments