Libraryless. Click here for Pure Java version (2476L/16K).
1 | static <A> A applyUntilSameOrNull(IF1<A> f, A o) { |
2 | while (o != null) { |
3 | ping(); |
4 | A o2 = f.get(o); |
5 | if (o == o2) break; |
6 | o = o2; |
7 | } |
8 | ret o; |
9 | } |
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1014060 |
Snippet name: | applyUntilSameOrNull |
Eternal ID of this version: | #1014060/5 |
Text MD5: | fbb329d9a2fd609b77a43eb3f343b513 |
Transpilation MD5: | 662985472061153052047468f3d7c562 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-05-26 11:40:51 |
Source code size: | 164 bytes / 9 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 478 / 580 |
Version history: | 4 change(s) |
Referenced in: | [show references] |