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

9
LINES

< > BotCompany Repo | #1022761 // withComputing - return second parameter after running first parameter. plus another version

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

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

static <A> A withComputing(Runnable r, A a) {
  callF(r);
  ret a;
}

static <A> A withComputing(A a, IVF1<A> r) {
  callF(r, a);
  ret a;
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1022761
Snippet name: withComputing - return second parameter after running first parameter. plus another version
Eternal ID of this version: #1022761/4
Text MD5: f3d8462cea9f6548684eec5bbe2a8e05
Transpilation MD5: 1aed17f89d73e07484556ba439a57d1e
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-04-26 01:25:41
Source code size: 148 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 339 / 465
Version history: 3 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)