Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

8
LINES

< > BotCompany Repo | #1028190 // applyUntilSame

JavaX fragment (include) [tags: use-pretranspiled]

Transpiled version (2479L) is out of date.

1  
static <A> A lambdaMapLike applyUntilSame(IF1<A> f, A o) {
2  
  while licensed {
3  
    A o2 = f.get(o);
4  
    if (o == o2) break;
5  
    o = o2;
6  
  }
7  
  ret o;
8  
}

Author comment

Began life as a copy of #1014060

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1028190
Snippet name: applyUntilSame
Eternal ID of this version: #1028190/2
Text MD5: 5631ce3aeaf65d86d33e6effaa5938ec
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:42:05
Source code size: 156 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 254 / 296
Version history: 1 change(s)
Referenced in: [show references]