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

10
LINES

< > BotCompany Repo | #1025531 // toIVF1

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

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

static <A> IVF1<A> toIVF1(VF1<A> f) {
  ret vf1ToIVF1(f);
}

static IVF1 toIVF1(O f) {
  if (f == null) null;
  if (f instanceof IVF1) ret (IVF1) f;
  if (isString(f)) ret mainFunctionToIVF1((S) f);
  ret (IVF1) a -> { callF(f, a); };
}

Author comment

Began life as a copy of #1024897

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: #1025531
Snippet name: toIVF1
Eternal ID of this version: #1025531/3
Text MD5: d79e80e7290bdbf2fd648cbabcc8c015
Transpilation MD5: b3b4c6ec5594eacf6ba03746bbc936fd
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-02-20 20:10:57
Source code size: 245 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 159 / 229
Version history: 2 change(s)
Referenced in: [show references]