From 2a04f78337a22217fd4f530c68a0823f8d318d32 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Thu, 29 May 2025 11:14:53 +0200 Subject: [PATCH] :sparkles: Add common transducers section to common data ns --- common/src/app/common/data.cljc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/common/src/app/common/data.cljc b/common/src/app/common/data.cljc index 80268f617e..5e7ae75cf3 100644 --- a/common/src/app/common/data.cljc +++ b/common/src/app/common/data.cljc @@ -33,6 +33,12 @@ (def boolean-or-nil? (some-fn nil? boolean?)) +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +;; Commonly used transducers +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; + +(def xf:map-id (map :id)) + ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Data Structures ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;