static LS tok_copyRawNTokens(LS tokA, LS tokB) { if (l(tokA)*2-1 != l(tokB)) ret tokB; new LS tokC; for i over tokB: tokC.add(odd(i) ? tokB.get(i) : tokA.get(i/2)); ret tokC; }
Began life as a copy of #1021362
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: | #1021363 |
Snippet name: | tok_copyRawNTokens - tokA contains only N tokens |
Eternal ID of this version: | #1021363/2 |
Text MD5: | 612389628ff1accaf6e2a832c7d58d8f |
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 19:02:01 |
Source code size: | 194 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 298 / 335 |
Version history: | 1 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |