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

7
LINES

< > BotCompany Repo | #1026260 // callPrint1x - call function with one argument and print everything

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

Libraryless. Click here for Pure Java version (2193L/14K).

// need separate function mae because lambda has no toString
static <A, B> B lambdaMapLike callPrint1x(IF1<A, B> f, S fname, A a) {
  print("Calling " + renderFunctionCall(fname, a));
  B b = f.get(a);
  print("  => " + b);
  ret b;
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1026260
Snippet name: callPrint1x - call function with one argument and print everything
Eternal ID of this version: #1026260/7
Text MD5: 9ce995eb7a2f712e057d62209fcf0800
Transpilation MD5: db5dcb2ac30f72f60740ec5e9521827f
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-12-09 14:10:49
Source code size: 240 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 131 / 204
Version history: 6 change(s)
Referenced in: [show references]