static S[] extendWordsMatrix(S[][] matrix, S line) { int cols = l(matrix[0]); S[] m = new S[cols]; L words = words(line); for j to cols: m[j] = j < l(words) ? words.get(j) : ""; ret m; }