Libraryless. Click here for Pure Java version (2476L/16K).
static <A> A applyUntilSameOrNull(IF1<A> f, A o) { while (o != null) { ping(); A o2 = f.get(o); if (o == o2) break; o = o2; } ret o; }
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: | 479 / 582 |
Version history: | 4 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1014063 - applyModifierWhileTrue #1014084 - applyUntilEq #1028190 - applyUntilSame |