How to change the following keys from the map without any variables full functional to I tried with map and was able to change the keys to the same strings but not to different ones. Answer You can apply a map to all the items but focus only on the keys: You can define f to be a function or