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

4
LINES

< > BotCompany Repo | #1026176 // pcallOrKeep

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

Libraryless. Click here for Pure Java version (2123L/14K).

static <A> A pcallOrKeep(A a, IF0<A> f) {
  if (f != null) pcall { ret f!; }
  ret a;
}

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: #1026176
Snippet name: pcallOrKeep
Eternal ID of this version: #1026176/1
Text MD5: fa4c8488d729d91fa8ecc9214935bb51
Transpilation MD5: 5ad3f19da52ac38aefc92fb9273190f1
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-11-27 23:22:17
Source code size: 90 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 194 / 292
Referenced in: [show references]