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(); }
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: | 519 / 686 |
| Version history: | 2 change(s) |
| Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1032934 - if0ToIF2 |