Mosaic matrix: Difference between revisions
Content added Content deleted
(add RPL) |
|||
Line 1,341: | Line 1,341: | ||
<br> |
<br> |
||
[http://keptarhely.eu/view.php?file=20220218v00xf1rfh.jpeg Mosaic Matrix] |
[http://keptarhely.eu/view.php?file=20220218v00xf1rfh.jpeg Mosaic Matrix] |
||
=={{header|RPL}}== |
|||
≪ → n |
|||
≪ n DUP 2 →LIST 0 CON |
|||
1 n '''FOR''' r |
|||
1 n '''FOR''' c |
|||
r c 2 →LIST r c + 2 MOD NOT PUT '''NEXT NEXT''' |
|||
≫ ≫ ‘<span style="color:blue">'''MOZTX'''</span>’ STO |
|||
4 <span style="color:blue">'''MOZTX'''</span> |
|||
{{out}} |
|||
<pre> |
|||
1: [[ 1 0 1 0 ] |
|||
[ 0 1 0 1 ] |
|||
[ 1 0 1 0 ] |
|||
[ 0 1 0 1 ]] |
|||
</pre> |
|||
=={{header|Sidef}}== |
=={{header|Sidef}}== |