I think it is worth considering a version which both removes items in place, and also returns the removed items, so as to split the collection by a predicate.
Nevin
_______________________________________________ swift-evolution mailing list swift-evolution@swift.org https://lists.swift.org/mailman/listinfo/swift-evolution