If clarity is the goal, then data structures that support access by index should be called `arrays` or `vectors`
If clarity is the goal, then data structures that support access by index should be called `arrays` or `vectors`
I'm more than happy to be corrected though.
Vectors are a mathematical concept unless you use c++.
What?!! No! Vector is almost never used in Java code. When you need index-based access, ArrayList is the much more common one, and it does implement List. So I would agree with parent commenter that List is the equivalent in Java.
A List in Java is a container that allows iterating over items efficiently, but does not necessarily provide efficient random access: https://docs.oracle.com/javase/8/docs/api/java/util/List.htm...
If you care about why Vector is nearly never used: it is synchronized by default, making it slower and more complex than ArrayList. Most Java programmers would prefer to implement synchronization themselves in case multi-threading is required since it nearly always involves having to synchronize multiple list operations at the same time, which cannot be done with Vector.
It's the same reason no one uses StringBuffer, but StringBuilder.
we have floating point type(It was missing from the type list in readme. I have just updated that seeing this comment. thank you!)
num32 being i32 or f32 makes no sense