DiffStep
public enum DiffStep<Value> : CustomDebugStringConvertible
These get returned from calls to Dwifft.diff(). They represent insertions or deletions that need to happen to transform one array into another.
-
An insertion.
Declaration
Swift
case insert(Int, Value)
-
A deletion.
Declaration
Swift
case delete(Int, Value)
-
A deletion.
Declaration
Swift
public var debugDescription: String
-
The index to be inserted or deleted.
Declaration
Swift
public var idx: Int
-
The value to be inserted or deleted.
Declaration
Swift
public var value: Value