Page 1 of 1

differents between ARRAYS and LISTS?

Posted: Aug 9th, '17, 10:57
by MSandro
Hi, I was very wondering while using GP. Some blocks are returning "array" elements and other "list".
Are there any differents? Why is that so?

Re: differents between ARRAYS and LISTS?

Posted: Aug 9th, '17, 11:16
by SvenJ
Here's what John said about them on a different thread:
Array is a low-level, fixed size data structure that's needed to implement lists, dictionaries, tasks, and other things, but it doesn't need to be visible until the user digs deeper into the implementation of the system. I'll fix map and filter. (I'm sure there are other cases were "arrays" get returned; I'll clean those up as they arise.)
(original thread can be found here)

It seems as though they're needed to implement things internally, but aren't actually intended to be visible to the user. My bet is that in the future, this type of data won't even exist anymore (at least as far as the user can see!).

Re: differents between ARRAYS and LISTS?

Posted: Aug 9th, '17, 11:27
by MSandro
Thank you very much for the quick reply.