Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> 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..];


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: