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?
MarkusR
(MarkusR)
2
i think you can use extends to add own functionality.
not at home for a test.
a own method would do the same
data=Last(myarray)
No.
Pop, but that will alter the array.
No.
You could write a method, say “Peek( myArray )”, that does this.
Thanks for your comments.