Immutable/Unmodifable ArrayWrappers #26
Labels
No Label
Documentated
Implemented
Tested
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Speiger/Primitive-Collections#26
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Basically if you want to make a array in a collection unmodifable you have to doublewrap or copy the provided array.
Have a UnmodifableList.unsafeWrap that effectively trusts the owner.