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

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

Author comment

Began life as a copy of #1026169

download  show line numbers  debug dex   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, 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: 44 / 73
Version history: 2 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1028099 & http://1028099.tinybrain.de