<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
	<id>http://digida.mgpu.ru/index.php?action=history&amp;feed=atom&amp;title=Multidimensional_Arrays</id>
	<title>Multidimensional Arrays - История изменений</title>
	<link rel="self" type="application/atom+xml" href="http://digida.mgpu.ru/index.php?action=history&amp;feed=atom&amp;title=Multidimensional_Arrays"/>
	<link rel="alternate" type="text/html" href="http://digida.mgpu.ru/index.php?title=Multidimensional_Arrays&amp;action=history"/>
	<updated>2026-04-10T14:15:58Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>http://digida.mgpu.ru/index.php?title=Multidimensional_Arrays&amp;diff=1732&amp;oldid=prev</id>
		<title>Patarakin: 1 версия импортирована</title>
		<link rel="alternate" type="text/html" href="http://digida.mgpu.ru/index.php?title=Multidimensional_Arrays&amp;diff=1732&amp;oldid=prev"/>
		<updated>2022-07-21T08:33:15Z</updated>

		<summary type="html">&lt;p&gt;1 версия импортирована&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Предыдущая версия&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Версия от 11:33, 21 июля 2022&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Patarakin</name></author>
	</entry>
	<entry>
		<id>http://digida.mgpu.ru/index.php?title=Multidimensional_Arrays&amp;diff=1731&amp;oldid=prev</id>
		<title>scratch&gt;Bigpuppy: Replaced incorrect use of &quot;i.e.&quot; with &quot;for example&quot;; added necessary &quot;that&quot;</title>
		<link rel="alternate" type="text/html" href="http://digida.mgpu.ru/index.php?title=Multidimensional_Arrays&amp;diff=1731&amp;oldid=prev"/>
		<updated>2020-06-14T15:35:55Z</updated>

		<summary type="html">&lt;p&gt;Replaced incorrect use of &amp;quot;i.e.&amp;quot; with &amp;quot;for example&amp;quot;; added necessary &amp;quot;that&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{merge|Array|date=June 2019}}&lt;br /&gt;
{{see also|Array}}&lt;br /&gt;
A &amp;#039;&amp;#039;&amp;#039;multidimensional array&amp;#039;&amp;#039;&amp;#039; is an array that contains other arrays of the same length; for example, an array with length 3 that contains 3 arrays, each of length 3. Currently, [[Scratch]] does not support such arrays; however, they can be replicated with [[string]]s. To do so, one compiles one [[list]] into a string (separated by a character such as a semicolon), adds that string as an item to a second list, compiles the second list into another string, and adds that string into a third list, then compiles that third list... and so on, for however many dimensions the array contains.&lt;br /&gt;
&lt;br /&gt;
==Tutorial==&lt;br /&gt;
This tutorial assumes two [[variable]]s:&lt;br /&gt;
* &amp;lt;sb&amp;gt;(i)&amp;lt;/sb&amp;gt;&lt;br /&gt;
* &amp;lt;sb&amp;gt;(r)&amp;lt;/sb&amp;gt;&lt;br /&gt;
It also assumes (assuming this is a 3-dimensional list) three lists:&lt;br /&gt;
* &amp;lt;sb&amp;gt;(uno::list)&amp;lt;/sb&amp;gt;&lt;br /&gt;
* &amp;lt;sb&amp;gt;(dos::list)&amp;lt;/sb&amp;gt;&lt;br /&gt;
* &amp;lt;sb&amp;gt;(tre::list)&amp;lt;/sb&amp;gt;&lt;br /&gt;
with &amp;quot;uno&amp;quot; actually storing the data.&lt;br /&gt;
&lt;br /&gt;
===Retrieving a value===&lt;br /&gt;
This process decompiles the lists and retrieves one item, using the three [[index]]es provided.&lt;br /&gt;
&amp;lt;scratchblocks&amp;gt;&lt;br /&gt;
define retrieve item (a) (sep1) (b) (sep2) (c)&lt;br /&gt;
delete (all v) of [dos v]&lt;br /&gt;
delete (all v) of [tre v]&lt;br /&gt;
set [i v] to [0]&lt;br /&gt;
repeat (length of (item (a) of [uno v]))&lt;br /&gt;
  set [r v] to [ ]&lt;br /&gt;
  repeat until &amp;lt;(letter (i) of (item (a) of [uno v])) = (sep1)&amp;gt;&lt;br /&gt;
    change [i v] by (1)&lt;br /&gt;
    set [r v] to (join (r) (letter (i) of (item (a) of [uno v])))&lt;br /&gt;
  end&lt;br /&gt;
  add (r) to [dos v]&lt;br /&gt;
end&lt;br /&gt;
set [i v] to [0]&lt;br /&gt;
repeat (length of (item (b) of [dos v]))&lt;br /&gt;
  set [r v] to [ ]&lt;br /&gt;
  repeat until &amp;lt;(letter (i) of (item (b) of [dos v])) = (sep2)&amp;gt;&lt;br /&gt;
    change [i v] by (1)&lt;br /&gt;
    set [r v] to (join (r) (letter (i) of (item (b) of [dos v])))&lt;br /&gt;
  end&lt;br /&gt;
  add (r) to [tre v]&lt;br /&gt;
end&lt;br /&gt;
set [r v] to (item (c) of [tre v])&lt;br /&gt;
&amp;lt;/scratchblocks&amp;gt;&lt;br /&gt;
The variable &amp;lt;sb&amp;gt;(r)&amp;lt;/sb&amp;gt; is the value retrieved.&lt;br /&gt;
&lt;br /&gt;
===Storing a value===&lt;br /&gt;
This process decompiles the lists, changes one value, then recompiles them.&lt;br /&gt;
&amp;lt;scratchblocks&amp;gt;&lt;br /&gt;
define store (data) in (a) (sep1) (b) (sep2) (c)&lt;br /&gt;
delete (all v) of [dos v]&lt;br /&gt;
delete (all v) of [tre v]&lt;br /&gt;
set [i v] to [0]&lt;br /&gt;
repeat (length of (item (a) of [uno v]))&lt;br /&gt;
  set [r v] to [ ]&lt;br /&gt;
  repeat until &amp;lt;(letter (i) of (item (a) of [uno v])) = (sep1)&amp;gt;&lt;br /&gt;
    change [i v] by (1)&lt;br /&gt;
    set [r v] to (join (r) (letter (i) of (item (a) of [uno v])))&lt;br /&gt;
  end&lt;br /&gt;
  add (r) to [dos v]&lt;br /&gt;
end&lt;br /&gt;
set [i v] to [0]&lt;br /&gt;
repeat (length of (item (b) of [dos v]))&lt;br /&gt;
  set [r v] to [ ]&lt;br /&gt;
  repeat until &amp;lt;(letter (i) of (item (b) of [dos v])) = (sep2)&amp;gt;&lt;br /&gt;
    change [i v] by (1)&lt;br /&gt;
    set [r v] to (join (r) (letter (i) of (item (b) of [dos v])))&lt;br /&gt;
  end&lt;br /&gt;
  add (r) to [tre v]&lt;br /&gt;
end&lt;br /&gt;
replace item (c) of [tre v] with (data)&lt;br /&gt;
set [i v] to [0]&lt;br /&gt;
set [r v] to [ ]&lt;br /&gt;
repeat (length of [tre v])&lt;br /&gt;
  change [i v] by (1)&lt;br /&gt;
  set [r v] to (join (join (r) (item (i) of [tre v])) (sep2))&lt;br /&gt;
end&lt;br /&gt;
replace item (b) of [dos v] with (r)&lt;br /&gt;
set [i v] to [0]&lt;br /&gt;
set [r v] to [ ]&lt;br /&gt;
repeat (length of [dos v])&lt;br /&gt;
  change [i v] by (1)&lt;br /&gt;
  set [r v] to (join (join (r) (item (i) of [dos v])) (sep1))&lt;br /&gt;
end&lt;br /&gt;
replace item (a) of [uno v] with (r)&lt;br /&gt;
&amp;lt;/scratchblocks&amp;gt;&lt;br /&gt;
[[Category:Scripting Tutorials]]&lt;br /&gt;
[[Category:String Tutorials]]&lt;br /&gt;
[[Category:Variables and List Tutorials]]&lt;/div&gt;</summary>
		<author><name>scratch&gt;Bigpuppy</name></author>
	</entry>
</feed>