Jump to content

Matrix transposition: Difference between revisions

try to figure out why Euphoria section disappears, resulting in off-by-one edit buttons
(try to figure out why Euphoria section disappears, resulting in off-by-one edit buttons)
Line 659:
 
=={{header|Euphoria}}==
<lang Euphoriaeuphoria>function transpose(sequence in)
sequence out
out = repeat(repeat(0,length(in)),length(in[1]))
Line 680:
 
Output:
<pre> {
{
{1,5,9},
{2,6,10},
{3,7,11},
{4,8,12}
}</pre>
 
=={{header|Factor}}==
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.