2 ms·
> i believe the only contender is julia C# has "^n" notation that means "length - n". For example: Take the last element of an array or any other structure th
by sedatk 1y ago
> i believe the only contender is julia
C# has "^n" notation that means "length - n". For example:
Take the last element of an array or any other structure that supports indices:
var a = ar[^1];
Take the last three elements of an array or any other data structure that supports ranges:
var lastThree = ar[^3..];