Omitting the end index when sub selecting from an array, the result is always an empty array.
As opposed to sub selecting from strings, the end index is mandatory when sub selecting from arrays.
Omitting the end index when sub selecting from an array, the result is always an empty array.
As opposed to sub selecting from strings, the end index is mandatory when sub selecting from arrays.
_str = "Hello World!";
hintSilent (_str select [3]); //"lo World!"
_arr = ["hello", "world", "you", "are", "wonderful"];
hintSilent str (_arr select [2]); []
hintSilent str (_arr select [2, count _arr]); ["you", "are", "wonderful"]
Not supposed to work on arrays. Only strings are supported.
Thank you for your feedback.
Hmm, I just reckoned, if something works by 90%, why not implement the remaining 10%? I know it's a common uninformed phrase, but <i>shouldn't be that hard</i> in this case, is it?
Thanks anyway for your consideration.