Matrix transposition: Difference between revisions

Content added Content deleted
No edit summary
m (β†’β€ŽES6 JS: let -> const)
Line 1,725:
 
// transpose :: [[a]] -> [[a]]
letconst transpose = xs =>
xs[0].map((_, iCol) => xs.map((row) => row[iCol]));
 
 
 
// TEST