1 | static S formatXYZ_appendRest(S pattern, L<S> args) { |
2 | L<S> tok = javaTokC(pattern); |
3 | L<S> restArgs = cloneList(args); |
4 | for (int idx : (L<Int>) reverseSorted(map(f formatXYZ_varToIndex_maybeQuoted, tok))) |
5 | remove(restArgs, idx-1); |
6 | ret join(" ", concatLists( |
7 | ll(formatXYZ(pattern, args)), |
8 | restArgs)); |
9 | } |
Began life as a copy of #1007412
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1007499 |
Snippet name: | formatXYZ_appendRest - formatXYZ & append all unused arguments |
Eternal ID of this version: | #1007499/8 |
Text MD5: | 7acd025d14d114c06f75da226393230a |
Author: | stefan |
Category: | javax / formatting |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-04-24 20:04:16 |
Source code size: | 325 bytes / 9 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 592 / 590 |
Version history: | 7 change(s) |
Referenced in: | [show references] |