There are a number of functions similar to update-keys
and update-vals
in existing utility libraries (usually called map-keys
/ map-vals
). afaik, those functions have not had the update
extra arg semantics and that's not been something that people have asked for.
One difference is that update
etc invoke the f on a single value, whereas update-keys
and update-vals
invoke f on many values. I'm not sure how often you would want to pass the same static trailing args to the function being applied to every key or value. I don't have any examples of that (but maybe that's just because the existing functions don't do this right now).
A workaround is of course to push that into the f via partial
or anonymous function, so maybe that's something that could be searched for.
Do you have a specific use case where you needed this?