-
Notifications
You must be signed in to change notification settings - Fork 66
-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
map-vals loses meta-data of containing collection [0.7.1] #13
Comments
That's how user=> (def x (with-meta [1] {:foo 1}))
#'user/x
user=> (meta (mapv inc x))
nil
user=> (meta x)
{:foo 1} |
I'd love a clarification on what clojure.core functions maintain metadata. I've asked on Slack but no response so far. May need to add a Clojure issue. |
Collection functions don't seem to maintain metadata. So |
I've added a |
I've found that if I have a collection, a map with meta data, and execute medley/map-vals upon it, the resulting map does not have the meta-data.
The text was updated successfully, but these errors were encountered: