Mosaic matrix: Difference between revisions

Content added Content deleted
m (→‎{{header|RPL}}: slightly optimized)
(→‎K: add)
Line 925: Line 925:
1 0 1 0 1
1 0 1 0 1
</syntaxhighlight>
</syntaxhighlight>

=={{header|K}}==
K6
<syntaxhighlight lang="k">mosaic: {x=/:x}2!!:

mosaic 6</syntaxhighlight>
{{out}}
<pre>(1 0 1 0 1 0
0 1 0 1 0 1
1 0 1 0 1 0
0 1 0 1 0 1
1 0 1 0 1 0
0 1 0 1 0 1)</pre>


=={{header|Maxima}}==
=={{header|Maxima}}==