InsertMany

data class InsertMany<T>(elements: List<T>, index: Int) : Patch<T>

A Patch saying, that a several element have been inserted

Parameters

elements

the new elements that have been inserted

index

the elements have been inserted at this index

Constructors

InsertMany
Link copied to clipboard
js
fun <T> InsertMany(elements: List<T>, index: Int)
the new elements that have been inserted

Functions

map
Link copied to clipboard
js
open override fun <R> map(parentJob: Job, mapping: (T, Job) -> R): Patch<R>
maps each of the new elements

Properties

elements
Link copied to clipboard
js
val elements: List<T>
the new elements that have been inserted
index
Link copied to clipboard
js
val index: Int
the elements have been inserted at this index