logging in, and updating users, works.

This commit is contained in:
Bryce Covert
2018-05-22 14:18:11 -07:00
parent 3fee89f840
commit 61d586f377
6 changed files with 107 additions and 19 deletions

View File

@@ -8,3 +8,12 @@
#(assoc %1 (f %2) (fv %2))
{}
xs)))
(defn replace-if [f candidate existing]
(reduce
(fn [xs x]
(if (f x candidate)
(conj xs candidate)
(conj xs x)))
[]
existing))