static <A> A replaceCompleteValue(A a, A... params) { for (int i = 0; i+1 < l(params); i += 2) if (eq(a, params[i])) ret params[i+1]; ret a; }
download show line numbers debug dex old transpilations
Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1020416 |
| Snippet name: | replaceCompleteValue |
| Eternal ID of this version: | #1020416/1 |
| Text MD5: | 07a2fb21e44453f4de6af95adddece79 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-12-20 16:34:16 |
| Source code size: | 161 bytes / 6 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 499 / 543 |
| Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |