static L<S> javaTokWithAngleBracketsC_addNumbers(S pat) { L<S> tok = javaTokWithAngleBracketsC(pat); new Map<S, Int> seen; for i over tok: { S t = tok.get(i); if (!isAngleBracketed(t)) continue; int n = toInt(seen.get(t))+1; if (n > 1) tok.set(i, dropLast(t) + n + ">"); seen.put(t, n); } ret tok; }
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: | 343 / 372 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |