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

9
LINES

< > BotCompany Repo | #1027151 // firstTransformersResult

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

Libraryless. Click here for Pure Java version (2208L/14K).

1  
static <A> A firstTransformersResult(L<IF1<A>> transformers, A a) {
2  
  fOr (IF1<A> f : transformers)
3  
    if (f != null) {
4  
      A b = f.get(a);
5  
      if (b != null && b != a)
6  
        ret b;
7  
    }
8  
  ret a;
9  
}

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: #1027151
Snippet name: firstTransformersResult
Eternal ID of this version: #1027151/1
Text MD5: df82524d52aeb7242f0f8e897fb28f43
Transpilation MD5: 11ee26a5907f357a53f67c198ea9f575
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-02-22 16:17:34
Source code size: 213 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 178 / 266
Referenced in: [show references]