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

16
LINES

< > BotCompany Repo | #1020756 // pcallFInRealMC - pcallF + adjust for real main class

JavaX fragment (include)

1  
static O pcallFInRealMC(fO realm, fO f, fO... args) {
2  
  pcall { ret callFInRealMC(realm, f, args); }
3  
  null;
4  
}
5  
6  
ifclass F0
7  
static <A> A pcallFInRealMC(O realm, F0<A> f) null on exception {
8  
  ret f == null ? null : f.get();
9  
}
10  
endif
11  
12  
ifclass F1
13  
static <A, B> B pcallFInRealMC(O realm, F1<A, B> f, A a) null on exception {
14  
  ret f == null ? null : f.get(a);
15  
}
16  
endif

Author comment

Began life as a copy of #1005301

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1020756
Snippet name: pcallFInRealMC - pcallF + adjust for real main class
Eternal ID of this version: #1020756/3
Text MD5: 4cd62b56de53c46fe46ab8c6af03a775
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-01-01 20:10:29
Source code size: 377 bytes / 16 lines
Pitched / IR pitched: No / No
Views / Downloads: 268 / 308
Version history: 2 change(s)
Referenced in: [show references]