Skip to content
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

(transform-keys ->kebab-case-keyword data-map) failed for numerical keys #62

Open
sr3d opened this issue Dec 12, 2019 · 1 comment
Open

Comments

@sr3d
Copy link

sr3d commented Dec 12, 2019

for a map such as { 1 {:a "b"} }, calling transform-keys ->kebab-case-keyword would throw an exception since it tries to symbolize the numerical key.

ClassCastException java.lang.Long cannot be cast to clojure.lang.Named  clojure.core/name (core.clj:1587)

The desirable result is that numerical keys are kept in tact and only text keys are converted.

@stig
Copy link

stig commented Jul 20, 2023

This also affects UUID keys.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants