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

3
LINES

< > BotCompany Repo | #1017232 // eitherBOpt

JavaX fragment (include)

static <A, B> B eitherBOpt(Either<A, B> e) {
  ret e != null && e.isB() ? e.b() : null;
}

Author comment

Began life as a copy of #1012071

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1017232
Snippet name: eitherBOpt
Eternal ID of this version: #1017232/1
Text MD5: a2a8b29bc6fdd7c1481b0a16d11dbd32
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-07-14 14:43:44
Source code size: 91 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 388 / 407
Referenced in: [show references]