Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

7
LINES

< > BotCompany Repo | #1015269 // getVar

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (37L/1K).

static <A> A getVar(IF0<A> v) {
  ret v?!;
}

static <A> A getVar(Optional<A> v) {
  ret v?.orElse(null);
}

Author comment

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: 394 / 468
Version history: 3 change(s)
Referenced in: [show references]