mirror of
https://github.com/pointfreeco/swift-custom-dump.git
synced 2026-04-07 19:17:35 +00:00
* Partially revert "f8c70309e75569964669af8a068fb0d0312c323f"
* Revert "Remove platform requirements (#37)"
This reverts commit fa2eb2572b.
9 lines
173 B
Swift
9 lines
173 B
Swift
extension CollectionDifference.Change {
|
|
var offset: Int {
|
|
switch self {
|
|
case let .insert(offset, _, _), let .remove(offset, _, _):
|
|
return offset
|
|
}
|
|
}
|
|
}
|