Add ObservableCollection.filter_to_bag, which filters elements in the source collection and leaves only elements which match the provided predicate.
The resulting object is a bag, which means it does not respect ordering, but it does support duplicates.
Not keeping track of indices allows the implementing class to observe its source collection in O(1) runtime.
Add
ObservableCollection.filter_to_bag, which filters elements in the source collection and leaves only elements which match the provided predicate.The resulting object is a bag, which means it does not respect ordering, but it does support duplicates.
Not keeping track of indices allows the implementing class to observe its source collection in O(1) runtime.