Zig-zag matrix: Difference between revisions

→‎{{header|Rascal}}: Marked incorrect as it is striped rather than zig-zag.
(→‎{{header|Rascal}}: Marked incorrect as it is striped rather than zig-zag.)
Line 2,564:
 
=={{header|Rascal}}==
{{incorrect|Rascal|Output is striped rather than zig-zag i.e. your numbers always increase going diagonally down and to the left when it should alternativly increase/decrease.}}
This is a translation of the [[Zig-zag_matrix#Python|Python]] example. As explained on the [[Talk:Zig-zag_matrix#anti-diagonals|Talk]] page, the key way to understand a zig-zag matrix is to write down an example with coordinates:
<lang rascal>0 (0,0), 1 (0,1), 3 (0,2)
Anonymous user