Libraryless. Click here for Pure Java version (3863L/22K).
// auto-magic type parameter might be a bad idea. supply explicitly if // in doubt. static <A, B, C> IF2<A, B, C> if0ToIF2(IF0<C> f) { ret f == null ?: (a, b) -> f.get(); }
Began life as a copy of #1028099
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1032934 |
Snippet name: | if0ToIF2 |
Eternal ID of this version: | #1032934/4 |
Text MD5: | 383135573ad1f59888369b476c96123d |
Transpilation MD5: | 73172dc8d3efaaa8b4d68bfef7841b73 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-10-11 03:12:04 |
Source code size: | 178 bytes / 5 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 189 / 276 |
Version history: | 3 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |