LANGUAGE
Range operator
Selects a half-open interval; array slicing returns an array with copied slots for a nonempty interval.
Formal Syntax & Structure
csharp syntaxcsharp
values[start..end]Working Example
Example Snippetcsharp
int[] a = [1, 2, 3]; int[] middle = a[1..2];