From 66b2b445dff8bef83dd47cc9a6bc62763fb68781 Mon Sep 17 00:00:00 2001 From: Felisp Date: Sun, 28 Jul 2024 18:31:46 +0200 Subject: [PATCH] Formating and incorrect docstring position Curse you Hy and your inversed do string --- src/rss_thread_watch/utils.clj | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/rss_thread_watch/utils.clj b/src/rss_thread_watch/utils.clj index 782ae5c..daed328 100644 --- a/src/rss_thread_watch/utils.clj +++ b/src/rss_thread_watch/utils.clj @@ -53,7 +53,7 @@ ;; https://stackoverflow.com/questions/8641305/find-index-of-an-element-matching-a-predicate-in-clojure "Returns indexes of elements passing predicate" [pred coll] - (keep-indexed #(when (pred %2) %1) coll)) + (keep-indexed #(when (pred %2) %1) coll)) (defn map-apply-defaults "Apply default values from [defaults] to keys not present in [conf] @@ -69,9 +69,10 @@ {k (map-apply-defaults conf-val default-val)} {k (nil?-else conf-val default-val)}))))) -(defn fmap [f m] +(defn fmap "Applies function [f] to every key and value in map [m] Function signature should be (f [key value])." + [f m] (into (empty m) (for [[key val] m]