mirror of
https://github.com/apple/swift-collections
synced 2026-11-30 05:18:44 +00:00
[PersistentSet] Add fixmes for in-place reductions
This commit is contained in:
1 parent
9a92eaeac3
commit
80195a8374
2 files changed
+4
No files matched your search
+2
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user