From fa0a03263d6e04555a3e6e81fef756b5be2a7072 Mon Sep 17 00:00:00 2001 From: rcmerci Date: Mon, 19 Dec 2022 23:26:18 +0800 Subject: [PATCH] fix: distinct-by: convert col to seq first --- src/main/frontend/util.cljc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/frontend/util.cljc b/src/main/frontend/util.cljc index 45b7fe3c78..5b35d682a2 100644 --- a/src/main/frontend/util.cljc +++ b/src/main/frontend/util.cljc @@ -474,7 +474,9 @@ #?(:cljs - (def distinct-by medley/distinct-by)) + (defn distinct-by + [f col] + (medley/distinct-by f (seq col)))) #?(:cljs (defn distinct-by-last-wins