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