Sorry for the waffly title - if I could come up with a concise title, I wouldn\'t have to ask the question.
Suppose I have an immutable list type. It has an operat
list.CopyWith(element)
As does Smalltalk :)
And also list.copyWithout(element) that removes all occurrences of an element, which is most useful when used as list.copyWithout(null) to remove unset elements.
list.copyWithout(element)
list.copyWithout(null)