Replace

final case class Replace(baseIx: Int, delCount: Int, targetIx: Int, insCount: Int) extends Op

Represents a number of contiguous elements in the base that was replaced with a chunk of a potentially differing (non-zero) length in the target.

Represents a number of contiguous elements in the base that was replaced with a chunk of a potentially differing (non-zero) length in the target.

This operation is essentially a combination of a Delete and an Insert at the same baseIx.

Value Params
baseIx

the index of the first element in the base sequence that are replaced

delCount

the number of elements in the base sequence that are replaced

insCount

the number of elements that are inserted from the target sequence

targetIx

the index of the first element in the target sequence that are inserted

trait Serializable
trait Product
trait Equals
trait Op
class Object
trait Matchable
class Any

Value members

Inherited methods

def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product