it looks like this :
it would be like this in the list
the list is :
0 1. 2. 3. 4. 5. x
1 1 67 6 71 0
2 73 2 36 3 20
3 193 8 25 96 7
4 721 9 4 50 31
5 874 1 23 92 75
y
(i know it looks ugly, it cant show multiple space next to eachother.)and with x =3 and y=2, it would report 36!
a simple addition that would make snap better.
You could use a table, like
1 | 2 | 3 | 4 | 5 | |
---|---|---|---|---|---|
1 | 1 | 67 | 6 | 71 | 0 |
2 | 73 | 2 | 36 | 3 | 20 |
etc...
This is only needed in scratch, as snap has the ability put lists in lists, basically creating a table, which also allows you to do this
You can also use lists of lists of indices to extract values from an array of any number of dimensions:
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.