differents between ARRAYS and LISTS?

Questions about GP commands and how to do things

Moderator: MSandro

Post Reply
MSandro
Posts: 162
Joined: Jul 26th, '17, 21:12

differents between ARRAYS and LISTS?

Post by MSandro » Aug 9th, '17, 10:57

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?

SvenJ
Posts: 25
Joined: Jul 6th, '17, 08:03

Re: differents between ARRAYS and LISTS?

Post by SvenJ » Aug 9th, '17, 11:16

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!).

MSandro
Posts: 162
Joined: Jul 26th, '17, 21:12

Re: differents between ARRAYS and LISTS?

Post by MSandro » Aug 9th, '17, 11:27

Thank you very much for the quick reply.

Post Reply