Skip to content

Commit

Permalink
Remove labels
Browse files Browse the repository at this point in the history
  • Loading branch information
mattmassicotte committed Jan 18, 2024
1 parent 89b4b84 commit 3b154b5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Sources/Rearrange/IndexSet+ApplyMutation.swift
@@ -1,17 +1,17 @@
import Foundation

extension IndexSet {
public func apply(mutation: RangeMutation) -> IndexSet {
public func apply(_ mutation: RangeMutation) -> IndexSet {
let ranges = nsRangeView.compactMap { $0.apply(mutation) }

return IndexSet(ranges: ranges)
}

public mutating func applying(mutation: RangeMutation) {
self = self.apply(mutation: mutation)
public mutating func applying(_ mutation: RangeMutation) {
self = self.apply(mutation)
}

public func apply(mutations: [RangeMutation]) -> IndexSet {
public func apply(_ mutations: [RangeMutation]) -> IndexSet {
var ranges = nsRangeView

for mutation in mutations {
Expand All @@ -21,7 +21,7 @@ extension IndexSet {
return IndexSet(ranges: ranges)
}

public mutating func applying(mutations: [RangeMutation]) {
self = self.apply(mutations: mutations)
public mutating func applying(_ mutations: [RangeMutation]) {
self = self.apply(mutations)
}
}

0 comments on commit 3b154b5

Please sign in to comment.