Hello
I have a association list and use the KeyValueMap function
list = <|"Dog" -> "Bard", "Cat" -> "Lisa"|>;
KeyValueMap[f, list]
which gives me
{f["Dog", "Bard"], f["Cat", "Lisa"]}
I'm trying to figure out how to apply a third argument to f, when calling it from KeyValueMap
f[key_, value_, third_] :=
Module[{}, Print[key, " name is ", value, " (", third, ")"]];
but all my attempts has failed. The third argument is detached from the list, and is picked up somewhere else. It has the same value for the entire list.
Could some kind person in here, point me in the right direction?
Thanks in advance