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
itemsIReadOnlyList<T>frominttoint
Returns
- T[]
Type Parameters
T