Execute SNUSP/Haskell: Difference between revisions
Content added Content deleted
(Extension: 3rd dimension) |
m (Grammar/spelling) |
||
Line 62: | Line 62: | ||
</pre> |
</pre> |
||
Here it's important that index lists with trailing |
Here it's important that index lists with trailing zeroes are treated just like this list without the zeroes, so we can handle any number of dimensions. We want the same flexibility when adding index lists: |
||
<pre> |
<pre> |
||
Line 178: | Line 178: | ||
== Extension == |
== Extension == |
||
To demonstrate the |
To demonstrate the ease of introducing even more dimensions, let's implement commands ( and ) to move the data pointer along the z-axis, and a command ^ to rotate the IP direction around the (1,1,1) axis (i.e., left becomes up, up becomes "farther" on the z-axis, "farther" becomes left, etc.). |
||
<pre> |
<pre> |