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

3
LINES

< > BotCompany Repo | #1033100 // if0ToRunnable - convert function object to Runnable

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

Libraryless. Click here for Pure Java version (33L/1K).

static Runnable if0ToRunnable(IF0 f) {
  ret f == null ?: () -> f!;
}

Author comment

Began life as a copy of #1005528

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1033100
Snippet name: if0ToRunnable - convert function object to Runnable
Eternal ID of this version: #1033100/1
Text MD5: ff2889c8c021c5b8f5cc5f6e66923397
Transpilation MD5: 1431c9f0b1be076274a9cc5938e8c1b1
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-10-14 16:00:39
Source code size: 71 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 128 / 196
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)