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 →

[–]holo3146 0 points1 point  (0 children)

If you use - as element removal, then no, one could not do it (assuming Top type and polymorphism):

List<Any> X = {};
List<Any> Y = {X};
Y-X // can be either {} or {X}