Delete

data class Delete<T>(start: Int, count: Int) : Patch<T>

A Patch saying, that one or more elements have been deleted

Parameters

start

the index of the first element, that has been deleted

count

the number of elements, that have to be deleted

Constructors

Delete
Link copied to clipboard
js
fun Delete(start: Int, count: Int = 1)
the index of the first element, that has been deleted

Functions

map
Link copied to clipboard
js
open override fun <R> map(parentJob: Job, mapping: (T, Job) -> R): Patch<R>
nothing to be mapped here...

Properties

count
Link copied to clipboard
js
val count: Int = 1
the number of elements, that have to be deleted
start
Link copied to clipboard
js
val start: Int
the index of the first element, that has been deleted