Discuss Scratch

redstonehouse
Scratcher
39 posts

Arrays

Wouldn't it be nice if we had a scratch 3.0!!! WITH ARRAYS!!

Add [Hello!] to X:(1) Y:(1) of array [Array1 v] 
(Item of array [Array1 v] X:(1) Y:(1))

say (Item of array [Array1 v] X:(1) Y:(1))

when green flag clicked
forever
Add [PLEASE ADD THIS!!!] to X:(1) Y:(1) of array [Say v]
say (Item of array [Say v] X:(1) Y:(1))

end

Please add this! I need it!!!

add [Arrays] to [Things to add to scratch v]

Just think of the uses of this block!

Definition: In computer science, an array data structure, or simply an array, is a data structure consisting of a collection of elements (values or variables), each identified by at least one array index or key. An array is stored so that the position of each element can be computed from its index tuple by a mathematical formula.
WIKI PAGE

Last edited by redstonehouse (Aug. 7, 2016 02:38:24)

DownsGameClub
Scratcher
1000+ posts

Arrays

I can't think of any uses because I don't know what these sets of blocks do.

Please describe each suggested block using complete, well thought, well structured sentences with detailed descriptions on what that block does.
redstonehouse
Scratcher
39 posts

Arrays

DownsGameClub wrote:

I can't think of any uses because I don't know what these sets of blocks do.

Please describe each suggested block using complete, well thought, well structured sentences with detailed descriptions on what that block does.


Ok! Done! Thanks!



gdpr533f604550b2f20900645890
Scratcher
1000+ posts

Arrays

What is the difference between what you are suggesting and Scratch's lists? Lists are at least not collections of a fixed size. Are you asking for two-dimensional lists?
redstonehouse
Scratcher
39 posts

Arrays

Chibi-Matoran wrote:

What is the difference between what you are suggesting and Scratch's lists? Lists are at least not collections of a fixed size. Are you asking for two-dimensional lists?

2d Lists basically!
alexphan
Scratcher
1000+ posts

Arrays

I would support more for multi-dimensional / first-class lists, so you can make not just 2d arrays, but you can essentially make an array with “infinite” dimensions.
redstonehouse
Scratcher
39 posts

Arrays

alexphan wrote:

I would support more for multi-dimensional / first-class lists, so you can make not just 2d arrays, but you can essentially make an array with “infinite” dimensions.

Great Idea!

Powered by DjangoBB