We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68524a8 commit d3a9444Copy full SHA for d3a9444
src/main/cljs/cljs/core.cljs
@@ -3780,6 +3780,9 @@ reduces them without incurring seq initialization"
3780
(-with-meta [this new-meta]
3781
(LazyTransformer. stepper first rest new-meta))
3782
3783
+ IMeta
3784
+ (-meta [this] meta)
3785
+
3786
ICollection
3787
(-conj [this o]
3788
(cons o (-seq this)))
src/test/cljs/cljs/core_test.cljs
@@ -1507,7 +1507,9 @@
1507
(is (= (sequence xform data) '(36 200 10))))
1508
(let [xf (map #(+ %1 %2))]
1509
(is (= (sequence xf [0 0] [1 2]) [1 2])))
1510
- ))
+ (is (= (-> (sequence (map inc) [1 2 3])
1511
+ (with-meta {:a 1})
1512
+ meta) {:a 1}))))
1513
1514
(deftest test-obj-equiv
1515
(testing "Object equiv method"
0 commit comments