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]