Insert

data class Insert<T>(element: T, index: Int) : Patch<T>

A Patch saying, that a new element has been inserted

Parameters

element

the new element that has been inserted

index

the element has been inserted at this index

Constructors

Insert
Link copied to clipboard
js
fun <T> Insert(element: T, index: Int)
the new element that has been inserted

Functions

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

Properties

element
Link copied to clipboard
js
val element: T
the new element that has been inserted
index
Link copied to clipboard
js
val index: Int
the element has been inserted at this index