@thevery IntArray is supported in KN but it is not ArrayList (it does not automatically increase its size when full)
d
Dico
12/03/2018, 12:50 AM
It would have to use a different version of ArrayList automatically I think, like C# runtime.
Dico
12/03/2018, 12:51 AM
Is vector from cstdlib available?
l
Landerl Young
12/03/2018, 2:24 AM
@Matej Kormuth IntArray is considered equivalent with Java’s Int[] or int32_t[] in cpp, it will not auto increase size.
While ArrayList is generic which is implemented with Type-Erasure, all Element type is treated as Any at runtime, so primitive in ArrayList(and other collections) must do auto box for putting into, which differs from what C++ template does.
o
olonho
12/03/2018, 5:14 AM
IntArray, LongArray and so on are cross-platform, and supported on JVM, Native and JS