Execute SNUSP/Haskell: Difference between revisions

m
Grammar/spelling
(Extension: 3rd dimension)
m (Grammar/spelling)
Line 62:
</pre>
 
Here it's important that index lists with trailing zeroszeroes 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>
Line 178:
== Extension ==
 
To demonstrate the easyease 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 "furtherfarther" on the z-axis, "furtherfarther" becomes left, etc.).
 
<pre>
Anonymous user