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)
My signature is kumquat proof.
But not tangerine pro-
nomnomnomnomnom
- braxbroscratcher
- Scratcher
1000+ posts
Arrays
Reserved
My signature is kumquat proof.
But not tangerine pro-
nomnomnomnomnom
- 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
- Sheep_maker This is a kumquat-free signature. :P
This is my signature. It appears below all my posts. Discuss it on my profile, not the forums. Here's how to make your own.
.postsignature { overflow: auto; } .scratchblocks { overflow-x: auto; overflow-y: hidden; }
- braxbroscratcher
- Scratcher
1000+ posts
Arrays
I've got to go to bed now, but tommorrow I'll add a FAQ to the post 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
My signature is kumquat proof.
But not tangerine pro-
nomnomnomnomnom
- gdpr533f604550b2f20900645890
- Scratcher
1000+ posts
Arrays
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). 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.
…
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. xDActually, 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). 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.
…
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.
My signature is kumquat proof.
But not tangerine pro-
nomnomnomnomnom
- 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. xDActually, 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). 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.
…
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. xDActually, 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). 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.
…
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.
My signature is kumquat proof.
But not tangerine pro-
nomnomnomnomnom
- 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
How would arrays be better than first-class lists (with the ability to have lists of lists)? Yes, but they can also be of two. So they can replace lists and even act as tables.
- 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
No, it'd be more like: Maybe but there should be a block like this?save coordinate [B] (12) in list [recorded coords v] :: grey
Sincerely, @TheLibrary-BranchC
set (1 v), (1 v) of [array v] to [string] :: lists
My signature is kumquat proof.
But not tangerine pro-
nomnomnomnomnom
- 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.How would arrays be better than first-class lists (with the ability to have lists of lists)? Yes, but they can also be of two. So they can replace lists and even act as tables.
My signature is kumquat proof.
But not tangerine pro-
nomnomnomnomnom
- braxbroscratcher
- Scratcher
1000+ posts
Arrays
bump
My signature is kumquat proof.
But not tangerine pro-
nomnomnomnomnom
- braxbroscratcher
- Scratcher
1000+ posts
Arrays
Bump!
My signature is kumquat proof.
But not tangerine pro-
nomnomnomnomnom
- 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)
I left the forums. Sorry.
(Original got removed by ST.)
- braxbroscratcher
- Scratcher
1000+ posts
Arrays
No, but a separate block data group would be good. I just used the list color so it wasn't red. xD Maybe have arrays as a separate block category? It would look a lot better that way.
My signature is kumquat proof.
But not tangerine pro-
nomnomnomnomnom
- braxbroscratcher
- Scratcher
1000+ posts
Arrays
But it can be more than one dimension. Lists can only be one. 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
My signature is kumquat proof.
But not tangerine pro-
nomnomnomnomnom
- BookOwl
- Scratcher
1000+ posts
Arrays
First class lists would allow infinite dimensions.But it can be more than one dimension. Lists can only be one. 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
No support because first class lists would be a lot simpler and more powerful.
who needs signatures
- Discussion Forums
- » Suggestions
- » Arrays