Let's suppose I have a function that returns an array. Let's name it arrFunc()
.
Now, if I need a quick use of this function (eg. return first/second/... value of the array), can I write something like this arrFunc()[0]
to return first array value? Or, is there something similar?
This is just a personal curiosity...