[PersistentSet] Add fixmes for in-place reductions

This commit is contained in:
Karoy Lorentey committed 2022-11-06 12:31:16 -08:00
1 parent 9a92eaeac3
commit 80195a8374
2 files changed
+4

No files matched your search

@@ -30,6 +30,7 @@ extension PersistentSet {
/// parts of the input trees directly into the result.
@inlinable
public mutating func formIntersection(_ other: Self) {
// FIXME: Implement in-place reductions
self = intersection(other)
}
@@ -51,6 +52,7 @@ extension PersistentSet {
public mutating func formIntersection<Value>(
_ other: PersistentDictionary<Element, Value>.Keys
) {
// FIXME: Implement in-place reductions
self = intersection(other)
}
@@ -26,6 +26,7 @@ extension PersistentSet {
/// parts of the input trees directly into the result.
@inlinable
public mutating func subtract(_ other: Self) {
// FIXME: Implement in-place reductions
self = subtracting(other)
}
@@ -48,6 +49,7 @@ extension PersistentSet {
public mutating func subtract<Value>(
_ other: PersistentDictionary<Element, Value>.Keys
) {
// FIXME: Implement in-place reductions
self = subtracting(other)
}