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).

static IF1 toIF1(fO f) {
  if (f == null) null;
  if (f instanceof IF1) ret (IF1) f;
  if (isString(f)) {
    ifndef callF_legacy
      fail("callF_legacy");
    endifndef
    ifdef callF_legacy
      ret mainFunctionToIF1((S) f);
    endifdef
  }
  ret new IF1 {
    public O get(O a) { ret callF(f, a); }
  };
}

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: 159 / 251
Version history: 4 change(s)
Referenced in: [show references]