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

7
LINES

< > BotCompany Repo | #1021362 // tok_copyNTokens

JavaX fragment (include)

static LS tok_copyNTokens(LS tokA, LS tokB) {
  if (l(tokA) != l(tokB)) ret tokB;
  new LS tokC;
  for i over tokB:
    tokC.add((odd(i) ? tokB : tokA).get(i));
  ret tokC;
}

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: #1021362
Snippet name: tok_copyNTokens
Eternal ID of this version: #1021362/2
Text MD5: 107753f6673b0dfc1feb5e1d73d6df3c
Author: stefan
Category: javax / tokenizing
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-02-09 18:56:11
Source code size: 180 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 314 / 354
Version history: 1 change(s)
Referenced in: [show references]