I am stuck with a problem. So the problem is.
- I have a map like this
{:first {"value1" "value2" "value3"...} :second {"value1" "value2" "value3"...}....}. - I have a function which
make a request to the server with parameters
(first&value1)and return some information (it must make request with each keys and their values(first&value1, first&value2 ...second&value1...)) Next step is to generate new map like:
{:first {:value1 {subvalue1, subvalue2 ..} :value2 {subvalue2-1,subvalue2-2}} :second {:value3 {:subvalue3-1,:subvalue3-2}..}..}
Subvalues is the result of making a request with each key and each item of its value.
And i want to repeat the operation once again(with 3 parameters when I make a request to the server) to achieve 4 times nested map: {first {second {third {fourth}}}}.
Maybe somebody give me helpful advice how to do it.
:firstis a series of values as your data suggests, then["value1" "value2" "value3"]makes sense, but{"value1" "value2" "value3"}makes no sense at all because a map must have an even number of forms.