Table of Contents

Method ArraySwap

Namespace
Velvet
Assembly
Velvet.Docs.dll

ArraySwap<T>(IReadOnlyList<T>, int, int)

Returns a copy of items with the items at from and to swapped, dnd-kit's arraySwap.

public static T[] ArraySwap<T>(IReadOnlyList<T> items, int from, int to)

Parameters

items IReadOnlyList<T>
from int
to int

Returns

T[]

Type Parameters

T