Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

8
LINES

< > BotCompany Repo | #1010878 // extendsWordsMatrix - make an additional line

JavaX fragment (include)

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

Author comment

Began life as a copy of #1010877

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1010878
Snippet name: extendsWordsMatrix - make an additional line
Eternal ID of this version: #1010878/1
Text MD5: c4b7e0a14e8ed5930d138c6070097e0d
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-10-05 00:28:13
Source code size: 210 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 333 / 359
Referenced in: [show references]