Libraryless. Click here for Pure Java version (3863L/22K).
1 | // auto-magic type parameter might be a bad idea. supply explicitly if |
2 | // in doubt. |
3 | static <A, B, C> IF2<A, B, C> if0ToIF2(IF0<C> f) {
|
4 | ret f == null ?: (a, b) -> f.get(); |
5 | } |
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: | 413 / 542 |
| Version history: | 3 change(s) |
| Referenced in: | [show references] |