File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 17781778 ~'__extmap)))
17791779
17801780 'IIterable
1781- `(~'-iterator [~gs] (RecordIter. 0 ~gs ~(count base-fields) [~@(map keyword base-fields)] (-iterator ~'__extmap) ))
1781+ `(~'-iterator [~gs]
1782+ (RecordIter. 0 ~gs ~(count base-fields) [~@(map keyword base-fields)] (if ~'__extmap
1783+ (-iterator ~'__extmap)
1784+ (core/nil-iter ))))
17821785
17831786 'IPrintWithWriter
17841787 `(~'-pr-writer [this# writer# opts#]
Original file line number Diff line number Diff line change 32453245 (is (= (hash (keyword 'app " foo" ))
32463246 (hash (keyword " app" " foo" )))))
32473247
3248+ (defrecord CLJS1780 [a b c])
3249+
3250+ (deftest test-cljs-1780
3251+ (let [record (->CLJS1780 1 2 3 )]
3252+ (is (= (into #{} (sequence (map identity)
3253+ record))
3254+ #{[:a 1 ] [:b 2 ] [:c 3 ]}))
3255+ (is (= (into #{} (sequence (map identity)
3256+ (assoc record :d 4 :e 5 )) )
3257+ #{[:a 1 ] [:b 2 ] [:c 3 ] [:d 4 ] [:e 5 ]}))))
3258+
32483259(comment
32493260 ; ; ObjMap
32503261 ; ; (let [ks (map (partial str "foo") (range 500))
You can’t perform that action at this time.
0 commit comments