DEV Community

Discussion on: Array Is Not A Linear Data Structure

 
louy2 profile image
Yufan Lou

We need some inevitable structure in the index to describe what we want. But as I demonstrated under "Definition 2", we are free to choose what that structure is. We've agreed on using integer exactly because it is much more powerful than linear, thus convenient for indexing random access.