Buckets:
| import min from "./min.js"; | |
| export default function transpose(matrix) { | |
| if (!(n = matrix.length)) return []; | |
| for (var i = -1, m = min(matrix, length), transpose = new Array(m); ++i < m;) { | |
| for (var j = -1, n, row = transpose[i] = new Array(n); ++j < n;) { | |
| row[j] = matrix[j][i]; | |
| } | |
| } | |
| return transpose; | |
| } | |
| function length(d) { | |
| return d.length; | |
| } | |
Xet Storage Details
- Size:
- 369 Bytes
- Xet hash:
- f8c22a1ba557dfaac1ec8bb83316bc01a1bbbed5f94b77e5236b76b8a365a194
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.