If I want to know the value of the last element in an array, normally I do: myArray(myArray.LastIndex),
I’d like something shorter like myArray(Last)
Does it exist?
If not, is there something similar?
If not, do you think it would be interesting for you?
i think you can use extends to add own functionality.
not at home for a test.
a own method would do the same
Pop, but that will alter the array.
You could write a method, say “Peek( myArray )”, that does this.
Thanks for your comments.