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

Dictionary Key-Path Subscript #573

Closed
wants to merge 3 commits into from

Conversation

calebkleveter
Copy link
Member

Fixes #565

var dict =  ["key": ["key1": ["key2": "value"]]]
dict[path: ["key", "key1", "key2"]] = "newValue"
dict[path: ["key", "key1", "key2"]] -> "newValue"

Checklist

  • I checked the Contributing Guidelines before creating this request.
  • New extensions are written in Swift 4.
  • New extensions support iOS 8.0+ / tvOS 9.0+ / macOS 10.10+ / watchOS 2.0+.
  • I have added tests for new extensions, and they passed.
  • All extensions have a clear comments explaining their functionality, all parameters and return type in English.
  • All extensions are declared as public.
  • I have added a changelog entry describing my changes.

@calebkleveter calebkleveter deleted the dictionary-keypath-sunscript branch September 28, 2018 15:14
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.

1 participant