Skip to content

Conversation

@jramosg
Copy link

@jramosg jramosg commented Jul 29, 2025

  • Adds new function to attach namespaces to map keys, creating namespaced keywords
  • Supports :except option to exclude specific keys from namespace transformation
  • Accepts namespace as keyword, string, or symbol
  • Works with different key types (keywords, strings, symbols)
  • Preserves map type (e.g., sorted-map) and handles nested values
  • Includes 58 comprehensive test cases covering edge cases and various scenarios

@jramosg jramosg force-pushed the master branch 4 times, most recently from c6d7153 to 8cbe985 Compare July 29, 2025 07:19
- Adds new function to attach namespaces to map keys, creating namespaced keywords
- Supports :except option to exclude specific keys from namespace transformation
- Accepts namespace as keyword, string, or symbol
- Works with different key types (keywords, strings, symbols)
- Preserves map type (e.g., sorted-map) and handles nested values
- Includes 58 comprehensive test cases covering edge cases and various scenarios
@weavejester
Copy link
Owner

Thank you for the pull request, but I think this is too specific a use-case for Medley.

I'd instead suggest just using map-keys and keyword:

(map-keys #(keyword "foo.bar" (name %)) m)

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

Successfully merging this pull request may close these issues.

2 participants