Hi,
I've a vector of maps like this:
[
{:categoryid 1, :categoryname "foo" }
{:categoryid 2, :categoryname "bar" }
{:categoryid 3, :categoryname "baz" }
]
and would like to generate a map of maps like this for searching by categoryname
{
"foo" {:categoryid 1, :categoryname "foo" },
"bar" {:categoryid 2, :categoryname "bar" },
"baz" {:categoryid 3, :categoryname "baz" }
}
How can i achieve?