more separation of concerns.

This commit is contained in:
Bryce Covert
2019-04-11 08:14:51 -07:00
parent bd5f9e9f58
commit c3199fb4cb
3 changed files with 125 additions and 115 deletions

View File

@@ -17,3 +17,12 @@
(conj xs x)))
[]
existing))
(defn replace-by [xs f x]
(mapv
(fn [t]
(if (= (f t) (f x))
x
t))
xs))