Libraryless. Click here for Pure Java version (9205L/51K).
1 | static IF0 toIF0(fO f) { |
2 | if (f == null) null; |
3 | if (f cast IF0) ret f; |
4 | if (f cast Runnable) ret -> { f.run(); null; }; |
5 | ifndef NoMainFunctionStrings |
6 | if (isString(f)) ret mainFunctionToIF0((S) f); |
7 | endifndef |
8 | ret (IF0) () -> callF(f); |
9 | } |
Began life as a copy of #1024897
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1025475 |
Snippet name: | toIF0 |
Eternal ID of this version: | #1025475/8 |
Text MD5: | bb992ce554f6d2c1611644415b805172 |
Transpilation MD5: | b6b832ce5a468a884d30d7a743a8f7a5 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-09-25 20:39:35 |
Source code size: | 252 bytes / 9 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 261 / 391 |
Version history: | 7 change(s) |
Referenced in: | [show references] |