Libraryless. Click here for Pure Java version (37L/1K).
1 | static <A> A getVar(IF0<A> v) { |
2 | ret v?!; |
3 | } |
4 | |
5 | static <A> A getVar(Optional<A> v) { |
6 | ret v?.orElse(null); |
7 | } |
Began life as a copy of #1010822
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1015269 |
Snippet name: | getVar |
Eternal ID of this version: | #1015269/4 |
Text MD5: | 738ae22facd90a0c5d776e443c259c28 |
Transpilation MD5: | 4835b1e49707c41eac1f65a4af1b2ffd |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-10-28 18:11:24 |
Source code size: | 113 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 479 / 574 |
Version history: | 3 change(s) |
Referenced in: | [show references] |