Why doesn't Mojo have predefined arrays/lists? #1737
Replies: 1 comment
-
Mojo has arrays, but they are called vectors:
The heap data structure is different from heap memory. By heap array, the author means that the array is stored in heap memory. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It seems like Mojo doesn't have array data types.
I have seen this in the documentation:
So in order to have similar data structures we have to define them like this?
And what is a heap array?
In my CS lectures I only heard about dynamic arrays, and it seems like this is a dynamic array.
Aren't heaps just trees where have the heap properties i.e. have some orders like max/min value at the first node?
Or are the standard Mojo Arrays the SIMD vector data structures?
Beta Was this translation helpful? Give feedback.
All reactions