Dang it, I could have sworn that I had tried that combination but actually
was missing the set wrapping the map!
So thanks TJ - great work and I really appreciate the support.
Ray
On Saturday, June 1, 2013 3:26:32 AM UTC+2, Tj Gabbour wrote:
>
> Hi Ray,
>
> Perhaps this?
>
>
> user> (let [desir
Hi Ray,
Perhaps this?
user> (let [desired-entity-names (set (map entity-names [:model :project]))]
(select #(desired-entity-names (:entity %))
query-parts))
#{{:entity "Model", :main-query "select * from model where ..."}
{:entity "Project", :main-query "select * fro
Sometimes its just so frustrating when you know you are close but just
cannot get that last little bit ... so I am appealing again for more newbie
support
I have a map for some names:
user=> (def entity-names {:project "Project" :model "Model"})
Which I then reference in a set of maps:
user=