Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | eod |
Apologies if this has been answered, I did a search and did not find anything…
How come built-in types like PoolStringArray
, PoolIntArray
etc… do not have a has()
method?
I find myself using those built-in types for memory optimization, but then having to create for loops to search if they have a value instead of simply using a has() function. It seems if those arrays are required to be composed of same types, there could be an optimized/fast way to search through the array (memory addresses) for a value.
Perhaps it has to do with one is passed by value vs. reference…