On Mon, Oct 22, 2012 at 2:54 PM, Aaron Cohen <aa...@assonance.org> wrote: > On Mon, Oct 22, 2012 at 2:51 PM, Aaron Cohen <aa...@assonance.org> wrote: >> I think that what you are doing here is something like the following?: >> >> (into {} (keep #(is-current? %2) map-of-all-user-maps) > > Bah, used the wrong function, since keep works on nil/not-nil this should be: > (into {} (filter #(is-current? %2) map-of-all-user-maps)
Or maybe my mental compiler is a little broken and that should be: (into {} (filter #(-> % val is-current?) map-of-all-user-maps) As to why your app dies after a couple of days. It may because of continually re-def'ing "updated-registry", but it may not be. What do your ring routes look like, and what are you using to serve your web app? -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en