@neumann thanks a lot for the clarification and examples - very much appreciated. Could you also share the utility functions you use for namespaced maps (like selecting all keys with given ns)?
I don't have code from a project I can share, but I just whipped this up:
(defn select-keys-by-namespace
[m ns]
(reduce-kv
(fn [m k v]
(if (= ns (namespace k))
(assoc m k v)
m))
{} m))
=> (select-keys-by-namespace {:player/id 42 :player/name "Boom" :team/id 1001} "player")
#:player{:id 42, :name "Boom"}
Although in the future, I may be inclined to use: https://weavejester.github.io/medley/medley.core.html#var-filter-keys
@jumar You're welcome. I'm happy to chat about it!