I am wondering how to update two values at the same time. For instance, I want to increase month and decrease age at the same time. My code is
user=>(def users {:month 1 :age 26})
user=>(update-in users [:month :age] inc dec)
I know this syntax is not correct, but how can I fix this? And I need to update at the same time. Since if I update month first and then update age, then the first map will lost when I update the second map. Or is there other way to figure out this problem?