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

component1
Link copied to clipboard
js
operator fun component1(): T
component2
Link copied to clipboard
js
operator fun component2(): Int
copy
Link copied to clipboard
js
fun copy(element: T, index: Int): Patch.Insert<T>
equals
Link copied to clipboard
js
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
js
open override fun hashCode(): Int
map
Link copied to clipboard
js
open override fun <R> map(parentJob: Job, mapping: (T, Job) -> R): Patch<R>
maps the new element
toString
Link copied to clipboard
js
open override fun toString(): String

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