>> (into {} (filter #(-> % val is-current?) map-of-all-user-maps)))))
I tested this and it works. I admit it is a bit of magic Clojure-fu wizardry that is a bit over my head. I am again impressed with how concise Clojure can be. On Monday, October 22, 2012 3:09:39 PM UTC-4, Aaron Cohen wrote: > > On Mon, Oct 22, 2012 at 2:54 PM, Aaron Cohen > <aa...@assonance.org<javascript:>> > wrote: > > On Mon, Oct 22, 2012 at 2:51 PM, Aaron Cohen > > <aa...@assonance.org<javascript:>> > 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