Insert

class Insert<T>(val element: T, val 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

Link copied to clipboard
constructor(element: T, index: Int)

Properties

Link copied to clipboard
val element: T
Link copied to clipboard
val index: Int

Functions

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

maps the new element