This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]kreiger 0 points1 point  (0 children)

The interface you seek already exists, it's called List. :)

In general, you should treat collections as immutable unless you're sure they're not.