more separation of concerns.
This commit is contained in:
@@ -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))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user