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: | 316 / 356 |
Version history: | 1 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1021363 - tok_copyRawNTokens - tokA contains only N tokens |