// Note: this can cause the bad-type-inference problem // if a is of a subtype of the A in f and f is a lambda specified without a type static <A> A pcallOr(IF0<A> f, A a) { if (f != null) pcall { ret f!; } ret a; }
Began life as a copy of #1026176
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
Snippet ID: | #1031524 |
Snippet name: | pcallOr |
Eternal ID of this version: | #1031524/2 |
Text MD5: | e4e23889b3efe3875a6474c9e658d3a9 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-06-18 18:40:37 |
Source code size: | 224 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 180 / 217 |
Version history: | 1 change(s) |
Referenced in: | [show references] |