@@ -12313,7 +12313,10 @@ reduces them without incurring seq initialization"
1231312313 (-invoke [coll k]
1231412314 (-lookup coll k))
1231512315 (-invoke [coll k not-found]
12316- (-lookup coll k not-found)))
12316+ (-lookup coll k not-found))
12317+
12318+ IPrintWithWriter
12319+ (-pr-writer [coll writer opts] (pr-sequential-writer writer pr-writer " [" " " " ]" opts coll)))
1231712320
1231812321(set! (. Vector -EMPTY) (Vector. nil (array )))
1231912322
@@ -12409,12 +12412,29 @@ reduces them without incurring seq initialization"
1240912412 (-invoke [coll k]
1241012413 (-lookup coll k))
1241112414 (-invoke [coll k not-found]
12412- (-lookup coll k not-found)))
12415+ (-lookup coll k not-found))
12416+
12417+ IPrintWithWriter
12418+ (-pr-writer [coll writer opts]
12419+ (print-map coll pr-writer writer opts)))
1241312420
1241412421(set! (. ObjMap -EMPTY) (ObjMap. nil (array ) (js-obj )))
1241512422
1241612423(set! (. ObjMap -fromObject) (fn [ks obj] (ObjMap. nil ks obj)))
1241712424
12425+ (defn obj-map
12426+ " keyval => key val
12427+ Returns a new object map with supplied mappings."
12428+ [& keyvals]
12429+ (let [ks (array )
12430+ obj (js-obj )]
12431+ (loop [kvs (seq keyvals)]
12432+ (if kvs
12433+ (do (.push ks (first kvs))
12434+ (gobject/set obj (first kvs) (second kvs))
12435+ (recur (nnext kvs)))
12436+ (.fromObject ObjMap ks obj)))))
12437+
1241812438; The keys field is an array of all keys of this map, in no particular
1241912439; order. Each key is hashed and the result used as a property name of
1242012440; hashobj. Each values in hashobj is actually a bucket in order to handle hash
@@ -12507,7 +12527,11 @@ reduces them without incurring seq initialization"
1250712527 (-invoke [coll k]
1250812528 (-lookup coll k))
1250912529 (-invoke [coll k not-found]
12510- (-lookup coll k not-found)))
12530+ (-lookup coll k not-found))
12531+
12532+ IPrintWithWriter
12533+ (-pr-writer [coll writer opts]
12534+ (print-map coll pr-writer writer opts)))
1251112535
1251212536(set! (. HashMap -EMPTY) (HashMap. nil 0 (js-obj )))
1251312537
@@ -12565,6 +12589,9 @@ reduces them without incurring seq initialization"
1256512589 (-invoke [coll k]
1256612590 (-lookup coll k))
1256712591 (-invoke [coll k not-found]
12568- (-lookup coll k not-found)))
12592+ (-lookup coll k not-found))
12593+
12594+ IPrintWithWriter
12595+ (-pr-writer [coll writer opts] (pr-sequential-writer writer pr-writer " #{" " " " }" opts coll)))
1256912596
1257012597(set! (. Set -EMPTY) (Set. nil (hash-map )))
0 commit comments