replace(with:where:)
Replaces elements of this vector with elements of other
in the lanes where mask
is true
.
mutating func replace(with other: SIMDMask<Storage>, where mask: SIMDMask<Storage>)
Equivalent to:
for i in indices {
if mask[i] { self[i] = other[i] }
}