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

5
LINES

< > BotCompany Repo | #1029105 // hijackPrintWithResult

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

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

static <A> Pair<A, S> hijackPrintWithResult(IF0<A> f) {
  new Var<A> var;
  S out = hijackPrint(r { var.set(f!) });
  ret pair(var!, out);
}

Author comment

Began life as a copy of #1011313

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1029105
Snippet name: hijackPrintWithResult
Eternal ID of this version: #1029105/1
Text MD5: eaf0c3e7e1de57555623a6f913c7a34d
Transpilation MD5: 529f600790b082057acfbeb9a0a1f3cd
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-07-19 16:25:31
Source code size: 144 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 177 / 248
Referenced in: [show references]