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

7
LINES

< > BotCompany Repo | #1028598 // if1print - wrap IF1 with printing

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

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

static <A, B> IF1<A, B> if1print(S prefix, IF1<A, B> f) {
  ret f == null ? null : a -> {
    B b = f.get(a);
    print(prefix + ": " + a + " => " + b);
    ret b;
  };
}

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: #1028598
Snippet name: if1print - wrap IF1 with printing
Eternal ID of this version: #1028598/1
Text MD5: da9eb5b846cf493e73968f554daefdf7
Transpilation MD5: edb644888c96923d0d4e260156cd3ee2
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-06-28 13:46:12
Source code size: 176 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 204 / 280
Referenced in: [show references]