hi there do we have String equivalent of IntArray...
# random
m
hi there do we have String equivalent of IntArray\LongArray in std lib? thx
k
Yes: Array. 😉
😁 2
👍 1
👍🏾 1
s
There wouldn’t be a benefit to a
StringArray
type: you can just use an
Array<String>
.
IntArray
and
LongArray
store their values as primitives instead of objects, which could improve performance for those types. Strings are always objects, so the distinction doesn’t apply.
👌 1
m
oops feel ashamed now =( still tnx!