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

3
LINES

< > BotCompany Repo | #1035990 // orIfEmpty

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

Libraryless. Click here for Pure Java version (9209L/51K).

static <A> Cl<A> orIfEmpty(Cl<A> a, Cl<A> b) {
  ret empty(a) ? b : a;
}

download  show line numbers  debug dex  old transpilations   

Travelled to 2 computer(s): elmgxqgtpvxh, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1035990
Snippet name: orIfEmpty
Eternal ID of this version: #1035990/1
Text MD5: ee590e168145b06c636ea7ffbd89e0fa
Transpilation MD5: c56412de7076b2f1c7f96af127a4b27b
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-08-21 04:06:34
Source code size: 74 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 124 / 173
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)