Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

[util] Implement Seqable for rconcat to avoid crashing CIDER (#64656)

Oleksandr Yakushevdddf6568c178
diff --git a/src/metabase/util.cljc b/src/metabase/util.cljc
index 340bf7adbf0..ce3fcd6d2c4 100644
--- a/src/metabase/util.cljc
+++ b/src/metabase/util.cljc
@@ -1229,7 +1229,11 @@
(coll-reduce [_ f init]
(let [acc1 (reduce f init r1)
acc2 (reduce f acc1 r2)]
- acc2)))
+ acc2))
+
+ ;; The only reason to implement Seqable is to make it properly renderable by CIDER (and other IDEs, probably).
+ clojure.lang.Seqable
+ (seq [_] (concat (seq r1) (seq r2))))
:cljs
(reify IReduce
(-reduce [_ f]