1 | static LS tok_copyRawNTokens(LS tokA, LS tokB) { |
2 | if (l(tokA)*2-1 != l(tokB)) ret tokB; |
3 | new LS tokC; |
4 | for i over tokB: |
5 | tokC.add(odd(i) ? tokB.get(i) : tokA.get(i/2)); |
6 | ret tokC; |
7 | } |
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: | 299 / 337 |
Version history: | 1 change(s) |
Referenced in: | [show references] |