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

7
LINES

< > BotCompany Repo | #1006549 // callPostProcessor (a function A -> A that may be null)

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

Libraryless. Click here for Pure Java version (2709L/16K).

static <A> A callPostProcessor(O f, A a) {
  ret f == null ? a : (A) callF(f, a);
}

static <A> A callPostProcessor(IF1<A> f, A a) {
  ret f == null ? a : f.get(a);
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1006549
Snippet name: callPostProcessor (a function A -> A that may be null)
Eternal ID of this version: #1006549/3
Text MD5: fb2a4bf1b7385a60836feb99b3373c25
Transpilation MD5: 6e75bfd1695df51e1c10d2c0e4949825
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-03-18 14:44:00
Source code size: 172 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 456 / 508
Version history: 2 change(s)
Referenced in: [show references]