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

5
LINES

< > BotCompany Repo | #1028099 // if0ToIF1

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

Libraryless. Click here for Pure Java version (2484L/16K).

1  
// auto-magic type parameter might be a bad idea. supply explicitly if
2  
// in doubt.
3  
static <A, B> IF1<A, B> if0ToIF1(IF0<B> f) {
4  
  ret f == null ? null : a -> f.get();
5  
}

Author comment

Began life as a copy of #1026169

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: #1028099
Snippet name: if0ToIF1
Eternal ID of this version: #1028099/3
Text MD5: 82fe02282337f03ad041c21ae7cd8705
Transpilation MD5: 006a273ce58046e2c40a7669da12bd75
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-05-19 14:00:05
Source code size: 173 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 285 / 407
Version history: 2 change(s)
Referenced in: [show references]