mirror of
https://github.com/pointfreeco/swift-custom-dump.git
synced 2026-04-07 19:17:35 +00:00
9 lines
173 B
Swift
9 lines
173 B
Swift
extension CollectionDifference.Change {
|
|
var offset: Int {
|
|
switch self {
|
|
case .insert(let offset, _, _), .remove(let offset, _, _):
|
|
return offset
|
|
}
|
|
}
|
|
}
|