Move

data class Move<T>(from: Int, to: Int) : Patch<T>

A Patch saying, that an element has been moved from one position to another. This is only used on Seq with a corresponding IdProvider.

Parameters

from

old index of the element

to

new index of the element

Constructors

Move
Link copied to clipboard
js
fun Move(from: Int, to: Int)
old index of the element

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

from
Link copied to clipboard
js
val from: Int
old index of the element
to
Link copied to clipboard
js
val to: Int
new index of the element