Support index from end (^) operator

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Won't Do
    • Priority: Unknown
    • None
    • Affects Version/s: None
    • Component/s: LINQ3
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      C# 8 introduced new syntax to index from the end of an array:

      var last = array[^1];
      

      The C# compiler translates ^ into an Index object. We would need to support new overloads for array access, IEnumerable.ElementAt(Index), and related methods.

      More details on the C#8 syntax can be found here:

      https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/operators/member-access-operators#index-from-end-operator-

            Assignee:
            James Kovacs
            Reporter:
            James Kovacs
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: