-
Notifications
You must be signed in to change notification settings - Fork 95
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
Implement SortedSet#update_in and List#update_in #192
Comments
Nowadays # Including `Associable` in your container class gives it an `update_in`
# method.
#
# To mix in `Associable`, your class must implement two methods:
#
# * `fetch(index, default = (missing_default = true))`
# * `put(index, item = yield(get(index)))`
#
# See {Vector#fetch}, {Vector#put}, {Hash#fetch}, and {Hash#put} for examples. So for As for |
For |
Indeed there's already As for |
Seems desirable for consistency with
Hash
andVector
?The text was updated successfully, but these errors were encountered: