Libraryless. Click here for Pure Java version (33L/1K).
static <A> A valueOrNull(bool b, A a) { ret b ? a : null; }
Began life as a copy of #1022132
download show line numbers debug dex old transpilations
Travelled to 2 computer(s): mqqgnosmbjvj, wnsclhtenguj
No comments. add comment
Snippet ID: | #1036568 |
Snippet name: | valueOrNull |
Eternal ID of this version: | #1036568/1 |
Text MD5: | 19f29709266ec657254209923aeaf8b7 |
Transpilation MD5: | 73257296513c342dbf5272e5123740c2 |
Author: | stefan |
Category: | |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2023-03-13 14:32:35 |
Source code size: | 63 bytes / 3 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 150 / 209 |
Referenced in: | #761 - New #629 - Standard functions list (LIVE) - continued on #1006654 |