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

7
LINES

< > BotCompany Repo | #1021952 // codeTokensAsStringArray

JavaX fragment (include)

static S[] codeTokensAsStringArray(LS tok) {
  int n = max(0, (l(tok)-1)/2);
  S[] out = new S[n];
  for i to n:
    out[i] = tok.get(i*2+1);
  ret out;
}

Author comment

Began life as a copy of #1001111

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1021952
Snippet name: codeTokensAsStringArray
Eternal ID of this version: #1021952/2
Text MD5: 193140686b7b0df025f73f1d21eb78a0
Author: stefan
Category:
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-03-04 00:57:46
Source code size: 160 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 229 / 266
Version history: 1 change(s)
Referenced in: [show references]