Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Parallel arrays typically don't store non-identically typed things one after the other. Unless I am mistaken, of course.

I think of it this way. Say you have two pieces of related data A and B. If you did this with nested arrays, say Foo{A, B}, than you would have an array that was A_1, B_1, A_2, B_2 in memory. With parallel arrays, you would have A_1, A_2 in one array, and B_1, B_2 in another.

So... is that not accurate?



Right. I tried to draw this in the diagrams.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: