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

3
LINES

< > BotCompany Repo | #1036201 // pairIfBNotNull

JavaX fragment (include)

1  
static <A, B> Pair<A, B> pairIfBNotNull(A a, B b) {
2  
  ret b == null ?: pair(a, b);
3  
}

Author comment

Began life as a copy of #1004220

download  show line numbers  debug dex  old transpilations   

Travelled to 2 computer(s): mqqgnosmbjvj, wnsclhtenguj

No comments. add comment

Snippet ID: #1036201
Snippet name: pairIfBNotNull
Eternal ID of this version: #1036201/1
Text MD5: 8b6862aaa901ef46876a1b0ce418329b
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-10-17 03:45:08
Source code size: 86 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 131 / 145
Referenced in: [show references]