Struct Leap::Unity::Slice

struct ><T> Leap.Unity.Slice : public Leap.Unity.IIndexableStruct< T, Slice< T>

Public Functions

Slice (IList<T> list, int beginIdx = 0, int endIdx = -1)

Creates a slice into the List with an inclusive beginIdx and an exclusive endIdx. A slice with identical begin and end indices would be an empty slice.

A slice whose endIdx is smaller than its beginIdx will index backwards along the underlying List.