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

3
LINES

< > BotCompany Repo | #1001741 // or function

JavaX fragment (include)

static <A> A or(A a, A b) {
  return a != null ? a : b;
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1001741
Snippet name: or function
Eternal ID of this version: #1001741/1
Text MD5: 3f997f878f63c90b8dc5645b8b51fdd1
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-12-13 19:55:57
Source code size: 59 bytes / 3 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 769 / 4975
Referenced in: #1002427 - Accellerating 629 (SPIKE)
#1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1024298 - or_func
#3000382 - Answer for ferdie (>> t = 1, f = 0)