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

15
LINES

< > BotCompany Repo | #1024897 // toIF1

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

Libraryless. Click here for Pure Java version (5009L/28K).

1  
static IF1 toIF1(fO f) {
2  
  if (f == null) null;
3  
  if (f instanceof IF1) ret (IF1) f;
4  
  if (isString(f)) {
5  
    ifndef callF_legacy
6  
      fail("callF_legacy");
7  
    endifndef
8  
    ifdef callF_legacy
9  
      ret mainFunctionToIF1((S) f);
10  
    endifdef
11  
  }
12  
  ret new IF1 {
13  
    public O get(O a) { ret callF(f, a); }
14  
  };
15  
}

Author comment

Began life as a copy of #1011035

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1024897
Snippet name: toIF1
Eternal ID of this version: #1024897/5
Text MD5: 5d6ca4770e574a41e9236061a0e9e054
Transpilation MD5: 6912480d475b8a0f0c5fe551babc1561
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-01-31 19:56:20
Source code size: 327 bytes / 15 lines
Pitched / IR pitched: No / No
Views / Downloads: 248 / 360
Version history: 4 change(s)
Referenced in: [show references]