1 | static <A> A replaceCompleteValue(A a, A... params) { |
2 | for (int i = 0; i+1 < l(params); i += 2) |
3 | if (eq(a, params[i])) |
4 | ret params[i+1]; |
5 | ret a; |
6 | } |
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: | 280 / 324 |
Referenced in: | [show references] |