A quick reminder today as I myself tend to forget about those π. From some time already one can index a collection not only from the front but from the back too.
Not sure if I like the ^ operator (a minus would be better) but itβs there. Just to remember that if we index from the back we need to 1-based indexing.
Do you use the index from end operator? Any useful tricks with those?
See the full docs π: https://learn.microsoft.com/en-us/dotnet/csharp/tutorials/ranges-indexes
See the attached code.