Discuss Scratch
- Discussion Forums
- » Suggestions
- » Arrays
- braxbroscratcher
-
Scratcher
1000+ posts
Arrays
I'd like to see something new in the data section. And before you say, “Shut up, it's workaroundable!” or “Too hard.” or even “No support”, hear me out. I'd like to see arrays, a table-like function.
What are they?
Arrays are a way of storing data. They take data and assign it a row and column, fitting it on a table-like structure.
An example would be:
A B C
A6 B22 C12
In this case, in column 1, you have A and A6. Sounds like a list, right? Sure, three wouldn't be too bad to workaround… Try this.
A B C D E F G H I J K L M N O P
a b c d e f g h i j k l m n o p
See? It gets big fast.
Uses for them
Arrays can be used to link a row of data from multiple columns to one origin, like the x and y of a clone, or clone data. They also can be used to store large amounts of data, sorting the large amounts neatly into rows and columns by what they have in common.
Workarounds
Currently the only workaround for this is to use a list for each row/column, and that can get cumbersome fast.
Supporters and Unsupporters
Endnote
Thank you for reading my suggestion. Please respond reasonably and fairly, considering all aspects of the idea. See ya around!
-Brax
What are they?
Arrays are a way of storing data. They take data and assign it a row and column, fitting it on a table-like structure.
An example would be:
A B C
A6 B22 C12
In this case, in column 1, you have A and A6. Sounds like a list, right? Sure, three wouldn't be too bad to workaround… Try this.
A B C D E F G H I J K L M N O P
a b c d e f g h i j k l m n o p
See? It gets big fast.
Uses for them
Arrays can be used to link a row of data from multiple columns to one origin, like the x and y of a clone, or clone data. They also can be used to store large amounts of data, sorting the large amounts neatly into rows and columns by what they have in common.
Workarounds
Currently the only workaround for this is to use a list for each row/column, and that can get cumbersome fast.
Supporters and Unsupporters
None yet!
Endnote
Thank you for reading my suggestion. Please respond reasonably and fairly, considering all aspects of the idea. See ya around!
-Brax
Last edited by braxbroscratcher (Aug. 11, 2016 00:25:58)
- Sheep_maker
-
Scratcher
1000+ posts
Arrays
So 2D lists? What blocks would be used to get/set these arrays?
I think first-class lists might be easier to understand/use when it comes to multidimensional lists
I think first-class lists might be easier to understand/use when it comes to multidimensional lists
- braxbroscratcher
-
Scratcher
1000+ posts
Arrays
So 2D lists? What blocks would be used to get/set these arrays?I've got to go to bed now, but tommorrow I'll add a FAQ to the post
I think first-class lists might be easier to understand/use when it comes to multidimensional lists
- gdpr533f604550b2f20900645890
-
Scratcher
1000+ posts
Arrays
I'd like to see something new in the data section. And before you say, “Shut up, it's workaroundable!” or “Too hard.” or even “No support”, hear me out. I'd like to see arrays, a table-like function.Actually, an array is a fixed-size data structure, represented as a pointer to the first element and indices being offsets of that address, pointing to the other elements, which are stored in contiguous locations. I do not believe arrays are related to dimensions (though arrays can be of any dimension).
What are they?
Arrays are a way of storing data. They take data and assign it a row and column, fitting it on a table-like structure.
…
Arrays can be used to link a row of data from multiple columns to one origin, like the x and y of a clone, or clone data. They also can be used to store large amounts of data, sorting the large amounts neatly into rows and columns by what they have in common.
…
Currently the only workaround for this is to use a list for each row/column, and that can get cumbersome fast.
- braxbroscratcher
-
Scratcher
1000+ posts
Arrays
They're fancy tables. xDI'd like to see something new in the data section. And before you say, “Shut up, it's workaroundable!” or “Too hard.” or even “No support”, hear me out. I'd like to see arrays, a table-like function.Actually, an array is a fixed-size data structure, represented as a pointer to the first element and indices being offsets of that address, pointing to the other elements, which are stored in contiguous locations. I do not believe arrays are related to dimensions (though arrays can be of any dimension).
What are they?
Arrays are a way of storing data. They take data and assign it a row and column, fitting it on a table-like structure.
…
Arrays can be used to link a row of data from multiple columns to one origin, like the x and y of a clone, or clone data. They also can be used to store large amounts of data, sorting the large amounts neatly into rows and columns by what they have in common.
…
Currently the only workaround for this is to use a list for each row/column, and that can get cumbersome fast.
- gdpr533f604550b2f20900645890
-
Scratcher
1000+ posts
Arrays
They don't have to be tables. They can be of one dimension. The key is that arrays are of a fixed size, unlike lists.They're fancy tables. xDI'd like to see something new in the data section. And before you say, “Shut up, it's workaroundable!” or “Too hard.” or even “No support”, hear me out. I'd like to see arrays, a table-like function.Actually, an array is a fixed-size data structure, represented as a pointer to the first element and indices being offsets of that address, pointing to the other elements, which are stored in contiguous locations. I do not believe arrays are related to dimensions (though arrays can be of any dimension).
What are they?
Arrays are a way of storing data. They take data and assign it a row and column, fitting it on a table-like structure.
…
Arrays can be used to link a row of data from multiple columns to one origin, like the x and y of a clone, or clone data. They also can be used to store large amounts of data, sorting the large amounts neatly into rows and columns by what they have in common.
…
Currently the only workaround for this is to use a list for each row/column, and that can get cumbersome fast.
Last edited by gdpr533f604550b2f20900645890 (Aug. 11, 2016 12:20:03)
- braxbroscratcher
-
Scratcher
1000+ posts
Arrays
Yes, but they can also be of two. So they can replace lists and even act as tables.They don't have to be tables. They can be of one dimension. The key is that arrays are of a fixed size, unlike lists.They're fancy tables. xDI'd like to see something new in the data section. And before you say, “Shut up, it's workaroundable!” or “Too hard.” or even “No support”, hear me out. I'd like to see arrays, a table-like function.Actually, an array is a fixed-size data structure, represented as a pointer to the first element and indices being offsets of that address, pointing to the other elements, which are stored in contiguous locations. I do not believe arrays are related to dimensions (though arrays can be of any dimension).
What are they?
Arrays are a way of storing data. They take data and assign it a row and column, fitting it on a table-like structure.
…
Arrays can be used to link a row of data from multiple columns to one origin, like the x and y of a clone, or clone data. They also can be used to store large amounts of data, sorting the large amounts neatly into rows and columns by what they have in common.
…
Currently the only workaround for this is to use a list for each row/column, and that can get cumbersome fast.
- TheLibrary-BranchC
-
Scratcher
73 posts
Arrays
Maybe but there should be a block like this?
Sincerely, @TheLibrary-BranchC
save coordinate [B] (12) in list [recorded coords v] :: grey
Sincerely, @TheLibrary-BranchC
- gdpr533f604550b2f20900645890
-
Scratcher
1000+ posts
Arrays
Yes, but they can also be of two. So they can replace lists and even act as tables.How would arrays be better than first-class lists (with the ability to have lists of lists)?
- TheLibrary-BranchC
-
Scratcher
73 posts
Arrays
I think this suggestion is advanced but:
The array of a, b, and c (3 dimensional)
Suggestion bit confusing. Therefore, semi support until further explaination.
The array of a, b, and c (3 dimensional)
[
[
[x, x, x], [x, x, x], [x, x, x]
[x, x, x], [x, x, x], [x, x, x]
[x, x, x], [x, x, x], [x, x, x]
]
[
[x, x, x], [x, x, x], [x, x, x]
[x, x, x], [x, x, x], [x, x, x]
[x, x, x], [x, x, x], [x, x, x]
]
[
[x, x, x], [x, x, x], [x, x, x]
[x, x, x], [x, x, x], [x, x, x]
[x, x, x], [x, x, x], [x, x, x]
]
]
Suggestion bit confusing. Therefore, semi support until further explaination.
- braxbroscratcher
-
Scratcher
1000+ posts
Arrays
Maybe but there should be a block like this?No, it'd be more like:save coordinate [B] (12) in list [recorded coords v] :: grey
Sincerely, @TheLibrary-BranchC
set (1 v), (1 v) of [array v] to [string] :: lists
- braxbroscratcher
-
Scratcher
1000+ posts
Arrays
Arrays require one create action and more streamlined use than first-class lists, where you create one array vs creating multiple lists and making them of each other.Yes, but they can also be of two. So they can replace lists and even act as tables.How would arrays be better than first-class lists (with the ability to have lists of lists)?
- 1MatsuLover
-
Scratcher
500+ posts
Arrays
Maybe have arrays as a separate block category? It would look a lot better that way.
Last edited by 1MatsuLover (Aug. 15, 2016 01:59:26)
- braxbroscratcher
-
Scratcher
1000+ posts
Arrays
Maybe have arrays as a separate block category? It would look a lot better that way.No, but a separate block data group would be good. I just used the list color so it wasn't red. xD
- Sigton
-
Scratcher
1000+ posts
Arrays
An array is just a more accurate term for lists.
First class lists would allow for what you are suggesting and, plus it would be a more intuitive feature.
Sigton
First class lists would allow for what you are suggesting and, plus it would be a more intuitive feature.
Sigton
- braxbroscratcher
-
Scratcher
1000+ posts
Arrays
An array is just a more accurate term for lists.But it can be more than one dimension. Lists can only be one.
First class lists would allow for what you are suggesting and, plus it would be a more intuitive feature.
Sigton
- BookOwl
-
Scratcher
1000+ posts
Arrays
First class lists would allow infinite dimensions.An array is just a more accurate term for lists.But it can be more than one dimension. Lists can only be one.
First class lists would allow for what you are suggesting and, plus it would be a more intuitive feature.
Sigton
No support because first class lists would be a lot simpler and more powerful.
- Discussion Forums
- » Suggestions
-
» Arrays






