Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
var array = new[] { 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H' };
Console.WriteLine($"{array[^3]}"); // prints "F" (3rd element from the end)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment