1 | static L<S> javaTokWithAngleBracketsC_addNumbers(S pat) { |
2 | L<S> tok = javaTokWithAngleBracketsC(pat); |
3 | new Map<S, Int> seen; |
4 | for i over tok: { |
5 | S t = tok.get(i); |
6 | if (!isAngleBracketed(t)) continue; |
7 | int n = toInt(seen.get(t))+1; |
8 | if (n > 1) |
9 | tok.set(i, dropLast(t) + n + ">"); |
10 | seen.put(t, n); |
11 | } |
12 | ret tok; |
13 | } |
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1017302 |
Snippet name: | javaTokWithAngleBracketsC_addNumbers - "<noun> <noun>" to "<noun> <noun2>" |
Eternal ID of this version: | #1017302/1 |
Text MD5: | 743a105153e4147454db445023c3f1b5 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-07-16 15:38:51 |
Source code size: | 347 bytes / 13 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 344 / 374 |
Referenced in: | [show references] |