Files
swift-custom-dump/Sources/CustomDump/Internal/CollectionDifference.swift
2025-11-14 21:22:15 +00:00

9 lines
173 B
Swift

extension CollectionDifference.Change {
var offset: Int {
switch self {
case .insert(let offset, _, _), .remove(let offset, _, _):
return offset
}
}
}